Serhiy Storchaka added the comment:

LGTM. I expect that with the patch for issue27078 the effect of this 
optimization is even more significant.

Years ago I wrote much larger patch that includes similar but even more 
aggressive microoptimization. But the effect was not very impressive for 
str.format. For f-strings it should be more significant. I'm going to revive my 
old patch and compare it with your short patch.

----------
assignee:  -> serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27818>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to