mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
More timings suggest that 2500 is closer to the break-even point.
This commit is contained in:
parent
ffcd8490d0
commit
636488043b
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ heapify_internal(PyObject *heap, int siftup_func(PyListObject *, Py_ssize_t))
|
|||
in cache, we prefer the simpler algorithm with less branching.
|
||||
*/
|
||||
n = PyList_GET_SIZE(heap);
|
||||
if (n > 10000)
|
||||
if (n > 2500)
|
||||
return cache_friendly_heapify(heap, siftup_func);
|
||||
|
||||
/* Transform bottom-up. The largest index there's any point to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue