ekjstm / permafrost

Automatically exported from code.google.com/p/permafrost
0 stars 0 forks source link

Swig arrays_java.i copies arrays unnecessarily #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Swig arrays_java.i copies arrays unnecessarily because it does not define
input/output typemaps. Instead, native arrays are always copied from
j*arrays before the native method is called and then copied back afterwords. 

In most cases, the native method either reads or writes from the array --
it does not mutate it. This means that there is almost always one
unnecessary array copy in method calls using the arrays_java '[]' typemap.

Original issue reported on code.google.com by solomon....@gmail.com on 9 Dec 2008 at 10:43

GoogleCodeExporter commented 9 years ago

Original comment by solomon....@gmail.com on 9 Dec 2008 at 10:43

GoogleCodeExporter commented 9 years ago
Implemented harrays.i as a replacement for arrays_java.i
Replacing the array typemap as I implement the unit tests.

Original comment by solomon....@gmail.com on 29 Dec 2008 at 9:06

GoogleCodeExporter commented 9 years ago
Typemap works. Some wrappers still need to be updated, but no need to keep this 
open
since a solution is known.

Original comment by solomon....@gmail.com on 31 Jan 2009 at 11:57