[Python] RAM e dimensioni file

Marco Mariani marco.mariani a prometeia.it
Gio 24 Set 2009 10:16:41 CEST


Roberto Bettazzoni wrote:

> In allegato trovi una prova che ho fatto al volo,
> sul mio windows XP con 2 Gb RAM liberi si blocca verso i 430 Mb
>
> Ci sara' un perche', ma lo ignoro.

Perche' hai 430 milioni di elementi (non byte, ottetti o caratteri), in 
una lista che occupa 2GB.

Conosco un posto dove ti danno una botta in testa nel punto giusto, e 
dimentichi il C, se interessa ;)

-- 
This e-mail (and any attachment(s)) is strictly confidential and for use only by intended recipient(s). Any use, distribution, reproduction or disclosure by any other person is strictly prohibited. The content of this e-mail does not constitute a commitment by the Company except where provided for in a written agreement between this e-mail addressee and the Company. If you are not an intended recipient(s), please notify the sender promptly and destroy this message and its attachments without reading or saving it in any manner. Any non authorized use of the content of this message constitutes a violation of the obligation to abstain from learning of the correspondence among other subjects, except for more serious offence, and exposes the person responsible to the relevant consequences.



Maggiori informazioni sulla lista Python