> Hi Everyone -- I'm about to embark on optimizing a piece of software written
> in Jython 2.5.0 and Java 1.6. I am not terribly experienced optimizing
> Jython or Java code so it's taking me some time to find my way.
> My immediate questions to the Jython user community are as follows:
> 1) What are the best tools for profiling Jython code? i.e. For what have you
> all found the best success pinpointing your performance bottlenecks? Any
> suggestions or pointers to good articles on Jython optimization would be
> greatly appreciated (I haven't found a whole lot so far.)
Since Jython code is compiled into the JVM byte code, any JVM profiler
should fill your need. Eclipse for instance has an open source one.
> 2) In general I'm finding my Jython code to run an order of magnitude more
> slowly than my Java code. Should I be surprised?
We need to see your benchmark. Did you try to compile your .py cde with