Re: [xz-devel] xz-java minor read improvements

2021-02-05 Thread Lasse Collin
On 2021-02-03 Brett Okken wrote: > I have not done any testing of xz specifically, but was motivated by > https://github.com/openjdk/jdk/pull/542, which showed pretty > noticeable slowdown when biased locking is removed. The specific > example there was writing 1 byte at a time being transitioned

Re: [xz-devel] xz-java minor read improvements

2021-02-03 Thread Brett Okken
I have not done any testing of xz specifically, but was motivated by https://github.com/openjdk/jdk/pull/542, which showed pretty noticeable slowdown when biased locking is removed. The specific example there was writing 1 byte at a time being transitioned to writing the 2-8 bytes to a byte[]

Re: [xz-devel] xz-java minor read improvements

2021-02-02 Thread Lasse Collin
On 2021-01-29 Brett Okken wrote: > Here are some small improvements when creating new BlockInputStream > instances. This reduces the size of the byte[] for the block header to > the actual size I committed this part. Thanks! > and replaces use of ByteArrayInputStream, which has synchronized >

[xz-devel] xz-java minor read improvements

2021-01-29 Thread Brett Okken
Here are some small improvements when creating new BlockInputStream instances. This reduces the size of the byte[] for the block header to the actual size and replaces use of ByteArrayInputStream, which has synchronized methods, with a ByteBuffer, which provides the same functionality without