uschindler commented on pull request #174: URL: https://github.com/apache/lucene/pull/174#issuecomment-857110715
With foreign API you can directly wrap arrays to compress and wrap as MemorySegment and pass to foreign function (native MethodHandle). Jextract parses header file and creates MethodHandlers out of it. It is also safer than JNI, because user has to opt in with a JVM parameter and you can't crush your jvm without explicitly allowing it. By default this codec won't work. So yes, that's the way to go in future... See also MmapDirectory v2 #177 for JDK 17. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org