There was an error while loading. Please reload this page.
1 parent ffcd849 commit 6364880Copy full SHA for 6364880
1 file changed
Modules/_heapqmodule.c
@@ -335,7 +335,7 @@ heapify_internal(PyObject *heap, int siftup_func(PyListObject *, Py_ssize_t))
335
in cache, we prefer the simpler algorithm with less branching.
336
*/
337
n = PyList_GET_SIZE(heap);
338
- if (n > 10000)
+ if (n > 2500)
339
return cache_friendly_heapify(heap, siftup_func);
340
341
/* Transform bottom-up. The largest index there's any point to
0 commit comments