S
S
sigito2011-10-24 22:07:55
Java
sigito, 2011-10-24 22:07:55

JNI.....................?

It is necessary to work with files and data archives in java. The speed of execution of this code is very critical. Is there any reason to rewrite work with the file system on native code with java?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
m039, 2011-10-24
@m039

Depending on what operations, all libraries that use archiving are already optimized and programmers are happy about this.
I don’t clearly know the specific task, but if we assume that most of its functionality is tied to IO, then rewriting does not make sense, because IO operations are quite slow and most likely blocking, only (as mentioned above) fixing the application logic. But if a compression algorithm or something similar (to Java) is used somewhere, then it makes sense to rewrite it in native, but it seems that there is no such thing in the task.

N
Next_Alex, 2011-10-24
@Next_Alex

There is a reason to work out / optimize the architecture of the application well, and it is possible to use JNI only if you stuff large autonomous pieces of critical code into the native part, and not separate operations. And there is no guarantee that this will give a tangible performance boost.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question