Kaydet (Commit) 63648804 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

More timings suggest that 2500 is closer to the break-even point.

üst ffcd8490
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment