[erlang-patches] Fix for: extremely slow Erlang to/from Java communication via JInterface

Raimo Niskanen raimo+erlang-patches@REDACTED
Wed Nov 30 12:29:18 CET 2011


On Wed, Nov 30, 2011 at 12:16:29PM +0100, Vlad Dumitrescu wrote:
> Hi!
> 
> 2011/11/30 Nico Kruber <kruber@REDACTED>:
> > We discovered, that the communication between Erlang and Java is
> > extremely slow when sending longer lists.
> >
> > git fetch git://github.com/NicoK/otp.git jinterface_better_buffer_alloc
> >
> > https://github.com/NicoK/otp/compare/jinterface_better_buffer_alloc
> > https://github.com/NicoK/otp/compare/jinterface_better_buffer_alloc.patch
> 
> This patch uses Java 6 features. Isn't jinterface supporting even Java 5?

That is correct. JDK 1.5 is the least common denominator.

Then it will not pass our tests.

Is it the java.util.Arrays.copyOf method that is too new, or is
it more? Can the patch be rewritten?


> 
> regards,
> Vlad
> _______________________________________________
> erlang-patches mailing list
> erlang-patches@REDACTED
> http://erlang.org/mailman/listinfo/erlang-patches

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-patches mailing list