2.7.1 significantly slower than 2.7.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

2.7.1 significantly slower than 2.7.0

Randall Wood
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):

import os
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?

Randall Wood
JMRI Developer - http://jmri.org
Alexandria Software - http://alexandriasoftware.com
Northern Virginia NTRAK - http://nvntrak.org





------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 2.7.1 significantly slower than 2.7.0

Randall Wood
This is http://bugs.jython.org/issue2604

Randall Wood

On Jul 4, 2017, at 09:24, Stefan Richthofer <[hidden email]> wrote:

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.
 
Best
 
-Stefan
 
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):
 
import os
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?
 
Randall Wood
JMRI Developer - http://jmri.org
Alexandria Software - http://alexandriasoftware.com
Northern Virginia NTRAK - http://nvntrak.org
 

 

------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________ Jython-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/jython-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Loading...