Message13048
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. |
|
Date |
User |
Action |
Args |
2020-05-08 23:04:14 | hansiang93 | set | messageid: <1588979054.25.0.112518365264.issue2886@roundup.psfhosted.org> |
2020-05-08 23:04:14 | hansiang93 | set | recipients:
+ hansiang93 |
2020-05-08 23:04:14 | hansiang93 | link | issue2886 messages |
2020-05-08 23:04:14 | hansiang93 | create | |
|