Message270505
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. |
|
Date |
User |
Action |
Args |
2016-07-15 19:41:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, mjpieters, eric.smith, ztane, Demur Rumed |
2016-07-15 19:41:07 | serhiy.storchaka | set | messageid: <1468611667.71.0.784034557797.issue27078@psf.upfronthosting.co.za> |
2016-07-15 19:41:07 | serhiy.storchaka | link | issue27078 messages |
2016-07-15 19:41:07 | serhiy.storchaka | create | |
|