[PATCH] Speed up iconView's setIcons 2x...
Maks Orlovich
mo002j at mail.rochester.edu
Sat Aug 17 20:48:06 BST 2002
Koos Vriezen wrote:
> On Wed, 14 Aug 2002, Maks Orlovich wrote:
>
>> Lars Knoll wrote:
>>
>> > A few comments....
>> >
>> > The repaint in the original patch shopuld probably be an update() call.
>> > This posts the event (instead of triggering the paint event
>> > synchronously), so several calls can be merged by Qt. It usually
>> > reduces flicker quite a bit and should also make it faster.
>>
>> Thanks for the suggestion... Koos, could you try with this change and see
>> whether it helps? If not, could you please describe more of your testing
>> setup.. I timed (clock counters) what you described, and it seems
>> signficantly faster with the patch... Also, Lars' suggestion gives me an
>> idea of how to reduce flicker: in KonqKfmIconView::newIconSize( int size
>> ) (konqueror/iconview/knq_iconview.cc), change:
>> m_pIconView->arrangeItemsInGrid( ); to:
>
> Yes, it seems faster and no blocking. Now I see one or two repaints when
> entering a dir.
I guess if it does look faster I'll go ahead an commit Monday evening if no
one else has any comments... Thanks a lot for the testing and the
comments..
More information about the kfm-devel
mailing list