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 Pankaj Pandey
Recipients Pankaj Pandey, taleinat, yselivanov
Date 2018-06-12.13:06:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528808808.18.0.475983251502.issue33587@psf.upfronthosting.co.za>
In-reply-to
Content
I simply profiled the script with "python -m cProfile -s cumtime inspect_stack_perf.py"
And yes, I should move the linecache check first, that would be a better idea. Though getmodule() is also fast enough and reordering it does not significantly change the performance (for the common case of no PEP302 modules).
History
Date User Action Args
2018-06-12 13:06:48Pankaj Pandeysetrecipients: + Pankaj Pandey, taleinat, yselivanov
2018-06-12 13:06:48Pankaj Pandeysetmessageid: <1528808808.18.0.475983251502.issue33587@psf.upfronthosting.co.za>
2018-06-12 13:06:48Pankaj Pandeylinkissue33587 messages
2018-06-12 13:06:48Pankaj Pandeycreate