[Qt-interest] Faster logfile viewer
Thomas Dähling
t.daehling at googlemail.com
Tue Aug 4 19:56:41 CEST 2009
You did try ::setUpdatesEnabled(false) for the time when you are adding entries?
Am 4. August 2009 17:49 schrieb Christoph Bartoschek <bartoschek at gmx.de>:
> Thomas Dähling wrote:
>
>> Try using a QPlainTextEdit instead of a QTextEdit. Not sure how much
>> performance improvement it will bring (no Qt installed on this machine
>> so cannot test it) but it is supposed to be a lot faster since it's
>> position calculations are a lot simpler than those in QTextEdit.
>
> QPlainTextEdit reduces the runtime down to 22 seconds. However this is still
> way slower than the old code.
>
> By commenting out the repaint() call the runtime is 1.7 seconds. This would
> be acceptable but we cannot get rid of the view updates.
>
> Christoph
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list