in reply to Performance Issue with Inline::Java module

Is there any way to reduce the time taken by each getter call ?

No. You're dealing with 2 independent virtual machines, and glue to connect them, and that is always going to be slow and memory hungry.

or Is there any way through which I can convert the Java objects into hash directly ?

Maybe theoretically (in the sense that anything is possible), but not in any practical way.

  • Comment on Re: Performance Issue with Inline::Java module

Replies are listed 'Best First'.
Re^2: Performance Issue with Inline::Java module
by bhaskar_narla (Novice) on Nov 23, 2010 at 06:58 UTC

    If it is not possible with Inline::Java, is there any other way ?

      If it is not possible with Inline::Java, is there any other way ?

      No.

      Well, maybe if you're an expert c-programmer, know how to get netbeans objects from JVM, and know enough perl5 details to make perl hash using C, then maybe you can get something working .... and then you've reinvented Inline::Java :)

      More practical solution would be to try the simple things like ikegami suggests.

      I don't know much about netbeans, but it would be faster if you could eliminate the java middle man altogether and connect directly from perl (or c/c++/xs), but its likely quite a bit more work