Java – cache in C accessed through JNI

Does building an LRU type cache in C / C + + and letting Java access it through JNI help improve performance?

Solution

Doubt

The JVM is doing quite well at present, especially considering that any application that needs caching may remain long enough for the JVM to optimize it quite a lot No matter how fast your cached code gets by avoiding the JVM, you may lose pushing objects back and forth through JNI

Not to mention the inherent development, maintenance and deployment difficulties of C code compared with Java Or the danger of reinventing the wheel by launching your own cache - there must be something you can use instead of launching your own

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>