A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2017-November/150216.html below:

[Python-Dev] PEP 563: Postponed Evaluation of Annotations

[Python-Dev] PEP 563: Postponed Evaluation of Annotations [Python-Dev] PEP 563: Postponed Evaluation of AnnotationsAntoine 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4