Re: [xz-devel] Re: java LZDecoder small improvement

2021-02-11 Thread Lasse Collin
On 2021-02-05 Brett Okken wrote: > I worked this out last night. We need to double how much we copy each > time by not advancing "back". This actually works even better than > Arrays.fill for the single byte case also. This clearly is a good idea in a Java implementation. :-) I still worry about

Re: [xz-devel] jdk9+ CRC64

2021-02-11 Thread Lasse Collin
On 2021-02-06 Brett Okken wrote: > Since it is quite easy to read an int from a byte[] in jdk 9, the > CRC64 implementation can be optimized to operate on an int rather than > byte by byte as part of a multi-release jar. This shows to be 5-7% > faster in a microbenchmark of just the crc64