in reply to Calls to Java methods
Hi perl_devel
You may find that it takes a bit longe while to run the Perl with Inline::Java, than it takes to run the Java code with the JVM. The reason for this is because Inline::Java takes your code: creates an appropriatly name java source file, compiles it, imbedds it, runs it and makes whatever calls it needs to make.
This is slower because Inline::Java has a bridge that acts like a go-between for Perl and Java. So the Java code is running at normal speed, and the perl is running at normal speed. The hit comes in when the Perl code has to wait for the Java code:D
Kristofer Hoch
You may find that it takes a bit longe while to run the Perl with Inline::Java, than it takes to run the Java code with the JVM. The reason for this is because Inline::Java takes your code: creates an appropriatly name java source file, compiles it, imbedds it, runs it and makes whatever calls it needs to make.
This is slower because Inline::Java has a bridge that acts like a go-between for Perl and Java. So the Java code is running at normal speed, and the perl is running at normal speed. The hit comes in when the Perl code has to wait for the Java code:D
Kristofer Hoch
In Section
Seekers of Perl Wisdom