Re: [Jython-users] 2.7.1 significantly slower than 2.7.0
For me this sounds like an actual bug rather than a normal speed regression.
120times slower means there must be something really wrong.
Plese file a bug about this at bugs.jython.org so we can keep track.
Add all code and information that is needed for reproducing.
> what do you need me to also test to include in a bug report
Please make reprodrucing as easy as possible.
Provide platform info and Java version and the command/method you use
for launching Jython (IDE, java -jar, jython launcher, etc).
Are you using jython-standalone or did you install it with the installer, etc?
Further stuff on request/discussion.
If you want, you can try to use the profiler hook to find the bottleneck.
Gesendet: Dienstag, 04. Juli 2017 um 11:32 Uhr Von: "Randall Wood" <[hidden email]> An:[hidden email] Betreff: [Jython-users] 2.7.1 significantly slower than 2.7.0
I have a process that uses Jython to check that files are being checked into a SCM using the correct line ends (its a Java test that uses Jython, embedded using JSR 223, to run 29057 tests. Each test is the following Jython script (written on the fly in Java where PATH is the file to check and changes every time):
failing = False
if "\r\n" in open(os.path.normpath(PATH), "rb").read():
failing = True
This has the following runtimes (in seconds) on the same computer with no other changes than Jython version:
Jython 2.7.0: 89.442 (~1.5 minutes)
Jython 2.7.1: 10,788.489 (~3 hours or ~120 times as long as 2.7.0)
What could be causing this discrepancy (is there something I can do), and what do you need me to also test to include in a bug report?