[Python-Dev] PEP 563: Postponed Evaluation of Annotations (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Mon Nov 6 06:12:36 EST 2017
- Previous message (by thread): [Python-Dev] PEP 563: Postponed Evaluation of Annotations
- Next message (by thread): [Python-Dev] PEP 563: Postponed Evaluation of Annotations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, 5 Nov 2017 20🔞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.
- Previous message (by thread): [Python-Dev] PEP 563: Postponed Evaluation of Annotations
- Next message (by thread): [Python-Dev] PEP 563: Postponed Evaluation of Annotations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]