Message270505
| 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. |
|