Creating Long Lists
Terry Reedy
tjreedy at udel.edu
Tue Feb 22 11:29:23 EST 2011
On 2/22/2011 4:40 AM, Kelson Zawack wrote:
> The answer it turns out is the garbage collector. When I disable the
> garbage collector before the loop that loads the data into the list
> and then enable it after the loop the program runs without issue.
> 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. Turning on
> and off the garbage collector is not a big deal, but it would
> obviously be nicer not to have to.
Heuristics, by their very nature, are not correct in all situations.
--
Terry Jan Reedy
More information about the Python-list
mailing list