speeding up dictionary creation

Peter Schneider-Kamp nowonder at nowonder.de
Fri Aug 18 03:50:58 EDT 2000


Darrell Gallion wrote:
> 
> Don't know if this is faster than cPickle or not.
> Write your data to a dictionary in a .py file which becomes compiled as a
> .pyc
> Importing the pyc is pretty fast.

That's right. I can't really say which is faster. They both
time around 300ms on average (for 17xxx dict entries).

Nice idea.

Peter
-- 
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter at schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de




More information about the Python-list mailing list