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 <1608572104.9.0.903923938403.issue42706@roundup.psfhosted.org>
In-reply-to
Content
> 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
History
Date User Action Args
2020-12-21 17:35:04rhettingersetrecipients: + rhettinger, serhiy.storchaka, Scott Norton
2020-12-21 17:35:04rhettingersetmessageid: <1608572104.9.0.903923938403.issue42706@roundup.psfhosted.org>
2020-12-21 17:35:04rhettingerlinkissue42706 messages
2020-12-21 17:35:04rhettingercreate