Many KNet operations can, or cannot, be impacted during JNI operations because data can, or cannot, be the copy of the data available in the JVM. #434
Labels
enhancement
New feature or request
java
Pull requests that update Java code
KNet
KNet related issue
.NET
Pull requests that update .net code
As stated in https://docs.oracle.com/javase/8/docs/technotes/guides/jni/spec/functions.html JVM can decide to copy, or pin, data depending on its internal implementation.
The data transfer used in KNet is based on JNI and the results of some benchmarks seems impacted from the following hypothesis:
Current benchmarks are based on
byte
array to reduce exogenous interference (like the implementation of the serializers) and in general KNet specific implementation (KNetConsumer, KNetProducer, KNet Streams SDK, etc) usesbyte
array.Maybe a better data exchange can be obtained reducing the number of array copies done during execution.
An issue will be opened to investigate on this possible evolution, meanwhile this issue is reopened.
Originally posted by @masesdevelopers in #53 (comment)
The text was updated successfully, but these errors were encountered: