Are there any plans to update xz-java to take advantage of newer
features in jdk 9+?

For example, Arrays.mismatch[1] leverages vectorized comparisons of 2
byte[]. This could be leveraged in the getMatches methods of BT4 and
HC4 as well as the 2 getMatchLen methods in LZEncoder.

Another example would be to use a VarHandle to read int values out of
a byte[][2], which would be useful for the calcHashes method in
Hash234.


[1] - 
https://docs.oracle.com/javase/9/docs/api/java/util/Arrays.html#mismatch-byte:A-int-int-byte:A-int-int-
[2] - 
https://docs.oracle.com/javase/9/docs/api/java/lang/invoke/MethodHandles.html#byteArrayViewVarHandle-java.lang.Class-java.nio.ByteOrder-

Thanks,

Brett

Reply via email to