Computer Science question (python list is slow with my cruddy algorithm )
Erik Max Francis
max at alcyone.com
Fri Aug 23 04:47:04 EDT 2002
"Mr. Neutron" wrote:
> I am working on a program that uses a list of lists
>
> MyList = [ [0] * 32767 for i in range(32767) ]
>
> My first realization is that it is incredibly slow just to
> create this
> list.
What are you actually trying to do? You should run out of memory before
this completes; it would take up more than 4 GB of memory.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ There is nothing so subject to the inconstancy of fortune as war.
\__/ Miguel de Cervantes
Church / http://www.alcyone.com/pyos/church/
A lambda calculus explorer in Python.
More information about the Python-list
mailing list