[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: [TSVN] More on Commit dialog performance

From: Lübbe Onken <l.onken_at_rac.de>
Date: 2004-12-16 09:26:54 CET

Hi Steve,

> That's true for small commits/checkouts. But once the
> listcontrol gets
> filled, it gets slower and slower...
> I wanted to profile that for some time now, but never got to it...

Windows Listcontrols get terribly slow when you add a lot of strings to
them, because their memory managament for strings is crap.
There are two things (at least in Delphi) that can speed up listcontrols a
lot.
1) Use the listcontrols BeginUpdate before adding strings and EndUpdate
afterwards. That makes the listcontrol *not* fire all the events associated
with adding a single entry. If you know you are going to add many strings to
the listcontrol, do this for 10-20 entries in a batch.
2) Use a virtual listcontrol instead that does not handle the strings
itself.

Cheers
-Lübbe

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Dec 16 09:27:57 2004

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.