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 taleinat
Recipients Pankaj Pandey, taleinat, yselivanov
Date 2018-06-10.12:04:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528632296.18.0.592728768989.issue33587@psf.upfronthosting.co.za>
In-reply-to
Content
Moving the linecache check up before the two others seems like a simple and safe optimization. On the other hand, I'm not sure calling getmodule() before checking if the file exists would be faster in many cases.

Pankaj, could you also include the script you ran to profile this and the command line by which it was invoked?
History
Date User Action Args
2018-06-10 12:04:56taleinatsetrecipients: + taleinat, yselivanov, Pankaj Pandey
2018-06-10 12:04:56taleinatsetmessageid: <1528632296.18.0.592728768989.issue33587@psf.upfronthosting.co.za>
2018-06-10 12:04:56taleinatlinkissue33587 messages
2018-06-10 12:04:55taleinatcreate