cPickle alternative?

Drochom pedrosch at gazeta.pl
Fri Aug 15 18:41:42 EDT 2003


Hello,

> If speed is important, you may want to do different things depending on
e.g.,
> what is in those tuples, and whether they are all the same length, etc.
E.g.,
> if they were all fixed length tuples of integers, you could do hugely
better
> than store the data as a list of tuples.
Those tuples have different length indeed.

> You could store the whole thing in a mmap image, with a length-prefixed
pickle
> string in the front representing index info.
If i only knew how do to it...:-)

> Find a way to avoid doing it? Or doing much of it?
> What are your access needs once the data is accessible?
My structure stores a finite state automaton with polish dictionary (lexicon
to be more precise) and it should be loaded
once but fast!

Thx
 Regards,
Przemo Drochomirecki







More information about the Python-list mailing list