Maybe we can bypass writing JNI and use JNA? https://jna.dev.java.net/
Apparently it doesn't work on the Mac and it's LGPL, however it would be great to be able to plugin madvise for the merges. Where the issue is merges do not need to be read into the system IO cache, however they are anyways. The result is the segments being queried can be partially unloaded from the IO cache and search performance may degrade (for example after an optimize). --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org