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 vstinner
Recipients loewis, mark.dickinson, pitrou, python-dev, serhiy.storchaka, vstinner
Date 2012-05-13.21:26:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336944413.83.0.861523463128.issue14744@psf.upfronthosting.co.za>
In-reply-to
Content
> Do you have anything more interesting than fmt="%s" ?
and
> It seems to me that the proposed changes are too tricky and too dirty for such a modest gain.

To be honest, I didn't write dont_overallocate.patch to speed up formatting strings, but it's a patch to prepare another change on str.format. The patch limits the overhead of _PyUnicodeWriter for str.format.

I proposed the change as a separated patch because I prefer simple patches: they are easier to review and to benchmark. But I agree the speed up is less impressive :-) I also prefer small patches for practical reasons. It's not easy to exchange huge patches on the tracker and to manipulate them. I always hesitate to start a new HG repository for a specific issue.

I will rewrite my format_writer-2.patch based on dont_overallocate.patch. It looks like you are waiting for the full patch.
History
Date User Action Args
2012-05-13 21:26:53vstinnersetrecipients: + vstinner, loewis, mark.dickinson, pitrou, python-dev, serhiy.storchaka
2012-05-13 21:26:53vstinnersetmessageid: <1336944413.83.0.861523463128.issue14744@psf.upfronthosting.co.za>
2012-05-13 21:26:53vstinnerlinkissue14744 messages
2012-05-13 21:26:53vstinnercreate