]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Remove explicit empty tuple reuse in cpickle.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Thu, 28 Nov 2013 23:17:29 +0000 (15:17 -0800)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Thu, 28 Nov 2013 23:17:29 +0000 (15:17 -0800)
commit6bf41e54a42fbe3deee70b8d786096bd6d1d133d
tree83ffa377600c2d0e71b54d68d7d5fee71b29c534
parentb13e6bcbd851c61af22c44dbe6f156653f54baae
Remove explicit empty tuple reuse in cpickle.

PyTuple_New(0) always returns the same empty tuple from its free list anyway,
so we are not saving much here. Plus, the code where this was used is on
uncommon run paths.
Modules/_pickle.c