[Python-ideas] Keep free list of popular iterator objects
anthonyfk at gmail.com
Mon Sep 16 01:50:53 CEST 2013
Thanks for taking the time to respond. Sorry I didn't see your comments
earlier, I have my mailing list settings to digest and for some reason they
weren't showing up in my inbox. Anyway, I agree that a real-world test
case would be best. Marc-Andre tossed out "100 objects" for the free list
size, but I'd like to point out that it probably doesn't need to be
anywhere near that large. How many iterators are active in the interpreter
simultaneously? I think we could get away with only a dozen or so.
Perhaps it's best for me at this point to try out the patch in our
application and see what some real world results would be. It'd also be
nice if there was some other macro-benchmark that I could run this against
to verify that it doesn't make things worse, which seems to be Raymond's
biggest concern. Is there something like this available? Maybe even just
the unit test suite?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas