[Konversation-devel] [Bug 144233] removing lines from the top of a full scrollback buffer is slow

David L Emerson demerson3x at angelbase.com
Sun Apr 29 19:58:27 CEST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=144233         




------- Additional Comments From demerson3x angelbase com  2007-04-29 19:58 -------
I've changed the timer to trim the scrollback once every five minutes, instead of once every second:
QTimer::singleShot(300000, this, SLOT(trimScrollBack()));
(changed 1000 to 300000)

This works beautifully for me.  I can now use konvi with a fixed-width font and 2000 lines of scrollback, and everything is smooth.  It is also *much* less processor-intensive: with deletions happening every second, the processor was getting warm enough that the fan was running continuously (it usually doesn't run at all, unless compiling. quiet laptop is nice!)  With deletions once every 5 minutes, I never hear the fan!

Further, when the deletion does occur, it doesn't seem to take any more time to process a 200-line deletion than a 1-line deletion.  In other words, I don't think this change would trigger any noticable difference on more powerful systems (except for taking more memory!)

Would it be reasonable to make this value easily-configurable?  Or just change the default to 300000?


More information about the Konversation-devel mailing list