Re: Cache complex list for faster performance



Stephan Kuhagen wrote:


In this line

set portlist [list $myinstalled $program $version $searchcategory]

you set the portlist always to a new value. If you want to save/cache the
results, you should append to portlist, otherwise you overwrite your
previous settings. Maybe, you mean something like

lappend portlist [list $myinstalled $program $version $searchcategory]

But then you have to change the next line also to

.t.right.upper.frame.listbox insert end [lindex $portlist end]

otherwise you would insert the whole (growing) list into your widget.

HTH
Stephan

This helps a lot. My program is now much more responsive. Thanks.

--Kevin

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
.