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 serhiy.storchaka
Recipients Demur Rumed, eric.smith, mjpieters, rhettinger, serhiy.storchaka, ztane
Date 2016-07-15.19:41:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468611667.71.0.784034557797.issue27078@psf.upfronthosting.co.za>
In-reply-to
Content
Nice idea, Antti. But I tried to implement it, and surprisingly found that this approach is slower than FORMAT_VALUE + BUILD_STRING. At least for this particular example. Perhaps because we can't use a stack and need to allocate a new tuple containing literal strings and formatted values for PyUnicode_Join(). Not mentioning that the code is much more complex.

Here is updated previous patch with fixed leak.
History
Date User Action Args
2016-07-15 19:41:08serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, mjpieters, eric.smith, ztane, Demur Rumed
2016-07-15 19:41:07serhiy.storchakasetmessageid: <1468611667.71.0.784034557797.issue27078@psf.upfronthosting.co.za>
2016-07-15 19:41:07serhiy.storchakalinkissue27078 messages
2016-07-15 19:41:07serhiy.storchakacreate