5 Sep
2020
5 Sep
'20
3:18 p.m.
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.