Aubin Paul wrote: > On Mon, Mar 31, 2003 at 09:03:23PM +0200, Dirk Meyer wrote: >> There's hope now. I had lists in lists and all the list += [ blah ] >> stuff isn't very fast. And I also had some lists twice in the >> system. I cleaned up the code / rewrote the what-to-update parser, >> please try again. > > I'll try it again; and I think it might be interesting to see if psyco > makes a difference, since it's main advantage is in calculations if I > recall correctly.
I don't think it's psyco. I navigated a lot yesterday and it's definitely faster. A list is a fine thing, but walking through a list takes time, copy one element from one list to another takes time, accessing dictinaries takes time. It's faster to cache some results in a tmp variable and to reduce the number of (redundant) lists and the length of each list. And it's faster to use (tuples) and not [lists]. Dischi -- There ought to be a better way to start the day than by getting up in the morning. ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel