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 rhettinger
Recipients Scott Norton, rhettinger, serhiy.storchaka
Date 2020-12-21.17:35:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> does the call/return really add that much overhead?

Yes, it does.

$ python3.9 -m timeit -s 'x=3.5' 'x**2'
5000000 loops, best of 5: 63.5 nsec per loop
$ python3.9 -m timeit -s 'x=3.5' -s 'f=lambda x: x**2' 'f(x)'
2000000 loops, best of 5: 136 nsec per loop
Date User Action Args
2020-12-21 17:35:04rhettingersetrecipients: + rhettinger, serhiy.storchaka, Scott Norton
2020-12-21 17:35:04rhettingersetmessageid: <>
2020-12-21 17:35:04rhettingerlinkissue42706 messages
2020-12-21 17:35:04rhettingercreate