[Python-Dev] PEP 563: Postponed Evaluation of Annotations
Antoine Pitrou
solipsis at pitrou.net
Mon Nov 6 06:12:36 EST 2017
On Sun, 5 Nov 2017 20:18:07 -0800
Lukasz Langa <lukasz at langa.pl> wrote:
>
> Interestingly enough, at Facebook we found out that using f-strings is *faster* at runtime than the lazy form of logging.log("format with %s and %d", arg1, arg2), including for cases when the log message is not emitted.
I suspect this depends on how complex your f-strings are (or the
interpolated data).
Regards
Antoine.
More information about the Python-Dev
mailing list