creating really big lists
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Sat Sep 8 13:00:10 EDT 2007
Delaney, Timothy (Tim) a écrit :
> Hrvoje Niksic wrote:
>
>
>>Dr Mephesto <dnhkng at googlemail.com> writes:
>>
>>
>>>I would like to create a pretty big list of lists; a list 3,000,000
>>>long, each entry containing 5 empty lists.
(snip)
>
>>If you're building large data structures and don't need to reclaim
>>cyclical references, I suggest turning GC off, at least during
>>construction.
>
> This is good advice, but another question is whether you really want
> such a list. You may well be better off with a database of some kind -
> they're designed for manipulating large amounts of data.
Hear hear... At least some sensible answer !-)
More information about the Python-list
mailing list