Hi all,

As I mentionned to James in a previous post, there is certainly some
optimizations to be done in that area. I will do some tests an try to
figure out what's going on.

Patrick


On 7/28/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi Prathapan,
> 
> The first thing to try would probably be to run it under Devel::DProf.
> That will at least narrow things down.
> 
>  -Ken
> 
> > -----Original Message-----
> > From: Prathapan Sethu [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 28, 2005 5:29 AM
> > To: inline@perl.org; James Ryley
> > Subject: Java Array from Perl
> >
> > Hi,
> >
> > My Perl program calls a Java method using Inline::Java. The
> > Java method returns a 2-dimensional array of Strings. Once I
> > get the array reference in Perl, I loop through the 20,000
> > items in the array. It takes 40 seconds to execute this loop.
> > If I use a native Perl array, it takes less than a second.
> >
> > Any idea why accessing Java arrays from Perl takes so long?
> >
> > Thanks,
> > Prathapan
> >
> 



-- 
=====================
Patrick LeBoutillier
Laval, Québec, Canada

Reply via email to