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 eric.smith
Recipients eric.smith, josh.r, kj, rhettinger, samuelmarks, steven.daprano
Date 2020-12-21.09:32:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608543144.54.0.520400111886.issue42699@roundup.psfhosted.org>
In-reply-to
Content
@samuelmarks:

A place where there it is possible to improve performance is with f-strings replacing %-formatting or str.format. This does move significant work to compile time.

However, we'd be unlikely to accept a wholesale stdlib change that swaps in f-strings. Instead, if there were specific places where benchmarks showed real world improvements, we should look at those on a case-by-case basis.

Also note that replacing %-formatting with .format() is almost always a performance pessimization.
History
Date User Action Args
2020-12-21 09:32:24eric.smithsetrecipients: + eric.smith, rhettinger, steven.daprano, josh.r, samuelmarks, kj
2020-12-21 09:32:24eric.smithsetmessageid: <1608543144.54.0.520400111886.issue42699@roundup.psfhosted.org>
2020-12-21 09:32:24eric.smithlinkissue42699 messages
2020-12-21 09:32:24eric.smithcreate