This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tzickel
Recipients bmerry, methane, tzickel
Date 2020-03-16.07:38:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584344301.62.0.930892851413.issue39974@roundup.psfhosted.org>
In-reply-to
Content
Also, semi related, (dunno where to discuss it), would a good .join() optimization be to add an optional length parameter, like .join(iterable, length=10), and when running in that code-path, it would skip all the calls to (PySequence_Fast which converts no list to list), and all the pre calculation of length to calculate allocation size, and instead directly start copying from input until length is done, and if the iterable didn't have enough length to fill up, only then throw an exception ?

There are places where you know how much information you expect to be .joining (or you want to join just a part of it) ?
History
Date User Action Args
2020-03-16 07:38:21tzickelsetrecipients: + tzickel, methane, bmerry
2020-03-16 07:38:21tzickelsetmessageid: <1584344301.62.0.930892851413.issue39974@roundup.psfhosted.org>
2020-03-16 07:38:21tzickellinkissue39974 messages
2020-03-16 07:38:21tzickelcreate