Creating Long Lists

Ben Finney ben+python at benfinney.id.au
Tue Feb 22 11:01:40 CET 2011


Kelson Zawack <zawackkfb at gis.a-star.edu.sg> writes:

> This raises a question though, can the logic of the garbage collector
> be changed so that it is not triggered in instances like this were you
> really do want to put lots and lots of stuff in memory.

Have you considered using a more specialised data type for such large
data sets, such as ‘array.array’ or the NumPy array types?

-- 
 \         “True greatness is measured by how much freedom you give to |
  `\      others, not by how much you can coerce others to do what you |
_o__)                                               want.” —Larry Wall |
Ben Finney



More information about the Python-list mailing list