Author ncoghlan
Recipients
Date 2006-09-06.13:04:13
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=1038590

Bah. The linecache version has the same problem as the
previous version - it's the failure case that searches the
whole of sys.modules that is slow, not the success case.

Patch attached which stores a mapping from module names to
module.__file__ values and skips the absolute lookup if the
value of module.__file__ hasn't changed.

History
Date User Action Args
2007-08-23 15:54:35adminlinkissue1553314 messages
2007-08-23 15:54:35admincreate