Thread

Posted on Wed Mar 7 08:05:35 2007 by kiranthakkar
Is JVM instantiated by Inline::perl?
Hi I am new to perl and have been using Inline::Java. As basically i am Java guy. I was wondering what exactly happens when Inline::Java is used. Is new JVM instantiated with Inline::Java? Isn't is slows down your application to certain extent? Isn't writing a same functionality in perl a better approach? Any help would be appreciated. -Kiran Thakkar
Direct Responses: 4501 | 4502 | Write a response
Posted on Wed Mar 7 19:15:39 2007 by patl in response to 4498
Re: Is JVM instantiated by Inline::perl?
Normally, every time you run your Perl scripts a new JVM will be created. You can use the SHARED_JVM if you want the JVM to hang around an wait for call from other scripts.

Of course using Inline::Java is somewhat slow, although using the JNI module will help. But if you need speed you are probably better off writing a dedicated Java server or rewriting in Perl.
Write a response
Posted on Wed Mar 7 19:17:58 2007 by patl in response to 4498
Re: Is JVM instantiated by Inline::perl?
Note: In the future please use the Inline mailing list (inline@perl.org) for Inline::Java support.
Write a response