![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: Calls to Java methodsby krisahoch (Deacon) |
on Jun 03, 2005 at 16:51 UTC ( #463334=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|