pickle vs .pyc

Hrvoje Niksic hniksic at srce.hr
Wed Jun 2 22:46:49 CEST 1999


Michael Vezie <mlv at pobox.com> writes:

> from cache import fast,slow
> 
> and it's right there.  It's compiled, and seems really fast (loading
> a 50k file in .12 seconds).

I understand that .pyc files use marshal.  Maybe this is simply a
matter of marshal being faster than cPickle?  Have you tried using
marshal directly?

(It makes sense for pickling to be slower than marshaling because it
does more; for example, it takes care about recursive relationships
and such.)




More information about the Python-list mailing list