Pankaj Pandey <[email protected]> added the comment:
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). ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue33587> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
