cPickle alternative?

Drochom pedrosch at gazeta.pl
Fri Aug 15 10:27:18 EDT 2003


Hello,
    I have a huge problem with loading very simple structure into memory
    it is a list of tuples, it has 6MB and consists of 100000 elements

>import cPickle

>plik = open("mealy","r")
>mealy = cPickle.load(plik)
>plik.close()

    this takes about 30 seconds!
    How can I accelerate it?

Thanks in adv.







More information about the Python-list mailing list