From: Aubin P. <au...@pu...> - 2003-04-01 17:15:45
|
On Tue, Apr 01, 2003 at 09:22:16AM +0200, Dirk Meyer wrote: > 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]. I tried it again (in case you're wondering, Psyco doesn't like the eval() calls) but it's still too slow to be usable for me. I still don't understand why. the CPU usage is literally double, and RAM usage has gone up too. Aubin |