Re: Speedup insert into treestore



* Florian Schaefer <listbox netego de> [2005-10-09 19:00]:
I've read about two possibilities: (1) To detach the treestore
from the view before doing any big changes and (2) to disable
sorting during this operation.

(3) Do both.

;-)

On another list we just had a case where disabling sorting
reduced the time taken to populate a liststore with a few
thousand entries from 5 to 0.5 seconds.

I suspect that detaching the model gives you a linear speedup
whereas disabling the sort is polynomial; so itâs really a good
idea to do both.

Regards,
-- 
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]