RE: Win32Lib: Possible problem with eraseItems() against a tree view?

new topic     » topic index » view thread      » older message » newer message

Less than a second?  On this Win2K machine (I think the processor is 
1gHz) it takes 15 seconds.  Even if your machine is a 2+ GHZ that 
shouldn't make a 15 second difference.

Jonas
Derek Parnell wrote:
> 
> 
> Yes there could be a problem. However it has been caused by the way that
> treeview has been implemented in the library. In win32lib, all treeview
> items in all treeviews are stored in RAM and a set of single sequences 
> is
> used to manage them. This means that to delete an item, the library has 
> to
> free up the RAM for that item and them delete its management data from 
> four
> sequences. And on a slow machine that could be noticible. I can delete 
> the
> entire sequence because other treeviews might be sharing it, so I have 
> to
> remove each item seperately.
> 
> On my home machine, the example you supplied takes a lot less than a 
> second
> to clear the old data. I wouldn't have even noticed unless you pointed 
> it
> out.
>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu