Armin Rigo <[email protected]> added the comment:

Found the reason: the problem is indeed not the 2nd call to _resize_list() in
_extend_from_iterable(), which is never called in this example.  The problem is
the 1st call.  It resizes by growing the list to *exactly* the specified size,
instead of overallocating a bit.  See the 'overallocate' argument to
_ll_list_resize_hint_really().  We need to figure out if it ever makes sense to
pass False here, or if we shouldn't just always overallocate.

----------
nosy: +arigo

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1599>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to