-
-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Gmainloop as a main loop to increase performance #1943
Conversation
Previous commits introduced a problem that chat state stopped working, this commit resolves it by updating it on each cycle.
e809307
to
080b0f8
Compare
I gave it a quick look and looks good, but I haven't tested it. Thanks for resurrecting this :-) |
I'm running this on my local machine since today, so far it seems to work fine. @H3rnand3zzz did you measure any performance improvements? I wonder how much it gives us so far, and without strophe/libstrophe#191. We also should link to #1246 |
It's very noticeable, especially with alt+scrolling, though I did not exactly measured it with timings. |
I ran this since a couple of days and didn't find any issues. |
The redisplay function in keyboard handling event was introduced by @rodarima in the following commit: 7eac636 At the point first commit introduction it made sense, but later the following commit added proper handling of input redisplay. ccede06 This change was overlooked by me and introduced in profanity-im#1943. Potential solution for profanity-im#1947.
Revert "Merge pull request #1943 from H3rnand3zzz/gmainloop This reverts commit 609fde0, reversing changes made to 2ec9406. Revert "Merge pull request #1948 from H3rnand3zzz/fix/rl-less-refreshes" This reverts commit 11762fd, reversing changes made to 609fde0. We have got several issues, that we don't quite see how to solve, with the merge of the gmainloop PR. * Slashguard is broken (#1955) (though #1956 could fix that) * One person reported problems with copy paste selection via mouse * Some input buffer seems not to be cleared correctly It happened that I was debugging profanity used `/connect` and typed the password. I then debugged so long that a time out occurred, so profanity disconnected. Then it printed "unknown command: $password". There was something else that I forgot now. Bottomline is: so far we didn't get it right so we will undo these changes until someone proposes a working solution. We got a slight performance increase (apparently noticable when alt+mouse scrolling) but got too many issues with this change.
Undone in 88b26cf |
Potential improvements:
Current version significantly improves performance, especially noticeable on alt+scroll.