Message13048

Author hansiang93
Recipients hansiang93
Date 2020-05-08.23:04:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588979054.25.0.112518365264.issue2886@roundup.psfhosted.org>
In-reply-to
Content
the issue https://bugs.jython.org/issue2472 and its subsequent resolution bc317e2 causes a side effect where jython will attempt to find a relative import again and again despite having done so in the past.

This violates expected python 2.7 relative import optimisation that places a None whenever an import is not found as opposed to null.

Consider the case of a local import being done on a loop without the use of absolute imports, we will attempt to generate all java classes, org.python.core.JavaImportHelper.tryAddPackage(), org.python.core.JavaImportHelper.buildLoadedPackages(), and java.lang.Package.getPackages() which add up to tons of CPU time usage.
History
Date User Action Args
2020-05-08 23:04:14hansiang93setmessageid: <1588979054.25.0.112518365264.issue2886@roundup.psfhosted.org>
2020-05-08 23:04:14hansiang93setrecipients: + hansiang93
2020-05-08 23:04:14hansiang93linkissue2886 messages
2020-05-08 23:04:14hansiang93create