Message319379
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). |
|
Date |
User |
Action |
Args |
2018-06-12 13:06:48 | Pankaj Pandey | set | recipients:
+ Pankaj Pandey, taleinat, yselivanov |
2018-06-12 13:06:48 | Pankaj Pandey | set | messageid: <1528808808.18.0.475983251502.issue33587@psf.upfronthosting.co.za> |
2018-06-12 13:06:48 | Pankaj Pandey | link | issue33587 messages |
2018-06-12 13:06:48 | Pankaj Pandey | create | |
|