]> granicus.if.org Git - python/commit
Bump the blocksize up from 62 to 64 to speed up the modulo calculation.
authorRaymond Hettinger <python@rcn.com>
Fri, 27 Feb 2015 07:21:29 +0000 (23:21 -0800)
committerRaymond Hettinger <python@rcn.com>
Fri, 27 Feb 2015 07:21:29 +0000 (23:21 -0800)
commitdaf57f25e5690cfaa4636ccf0d113908dc0783a4
tree9dea7077c9a9350ef293ac5cf0ad40daf9cb4ce2
parentb1e6e57a170d39733937176431767983f8e82ab7
Bump the blocksize up from 62 to 64 to speed up the modulo calculation.

Remove the old comment suggesting that it was desireable to have
blocksize+2 as a multiple of the cache line length.  That would
have made sense only if the block structure start point was always
aligned to a cache line boundary.  However, the memory allocations
are 16 byte aligned, so we don't really have control over whether
the struct spills across cache line boundaries.
Lib/test/test_deque.py
Modules/_collectionsmodule.c