Re: Cache complex list for faster performance
- From: Kevin Walzer <kw@xxxxxxxxxxxxxxx>
- Date: Tue, 31 Jul 2007 11:13:55 -0400
Stephan Kuhagen wrote:
This helps a lot. My program is now much more responsive. Thanks.
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
--Kevin
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
.
- References:
- Cache complex list for faster performance
- From: Kevin Walzer
- Re: Cache complex list for faster performance
- From: Stephan Kuhagen
- Cache complex list for faster performance
- Prev by Date: Re: BWidget <<TreeSelect>> + keyboard navigation
- Next by Date: Re: tclkit.exe description
- Previous by thread: Re: Cache complex list for faster performance
- Next by thread: using configure
- Index(es):