Python large variable RAM useage
Posted
by PPTim
on Stack Overflow
See other posts from Stack Overflow
or by PPTim
Published on 2010-04-19T18:58:03Z
Indexed on
2010/04/19
19:03 UTC
Read the original article
Hit count: 318
Hi,
Say there is a dict variable that grows very large during runtime- up into millions of key:value pairs.
Does this variable get stored in RAM,effectively using up all the available memory and slowing down the rest of the system?
Asking the interpreter to display the entire dict is a bad idea, but would it be okay as long as one key is accessed at a time?
Tim
© Stack Overflow or respective owner