On Sun, 5 Nov 2017 20:18:07 -0800 Lukasz Langa <luk...@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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com