04.09.20 13:40, Antoine Pitrou пише:
> And tuple allocation uses freelists for small sizes, so I'm not even
> sure how useful that optimization is.

I do not know about zip(), but I measured the overhead of tuple
allocation in comparison of reusing tuple in other code, and it was not
so small. Tuple *deallocation* adds a significant amount of overhead due
to using the trashcan mechanism.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/NQDVIGDGOYV2EVN6DVDP4XFMQRVCD4GA/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to