Integrated: 8265448: (zipfs): Reduce read contention in ZipFileSystem

2021-05-11 Thread Jason Zaugg
On Tue, 4 May 2021 13:07:34 GMT, Jason Zaugg wrote: > If the given Path represents a file, use the overload of read defined > in FileChannel that accepts an explicit position and avoid serializing > reads. > > Note: The underlying NIO implementation is not requir

Re: RFR: 8265448: (zipfs): Reduce read contention in ZipFileSystem [v4]

2021-05-06 Thread Jason Zaugg
On Thu, 6 May 2021 08:05:12 GMT, Jason Zaugg wrote: >> src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java line 1235: >> >>> 1233: synchronized(ch) { >>> 1234: return ch.position(pos).read(bb); >>> 1235: }

Re: RFR: 8265448: (zipfs): Reduce read contention in ZipFileSystem [v5]

2021-05-06 Thread Jason Zaugg
3.301 ms/op > > > To: > > > BenchmarkMode Cnt Score Error Units > ZipFileSystemBenchmark.read avgt 10 12.520 ? 0.875 ms/op Jason Zaugg has updated the pull request incrementally with one additional commit since the last revision: [zipfs] Add

Re: RFR: 8265448: (zipfs): Reduce read contention in ZipFileSystem [v4]

2021-05-06 Thread Jason Zaugg
On Thu, 6 May 2021 07:41:00 GMT, Alan Bateman wrote: >> Jason Zaugg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove redundant cast from previous commit. > > src/jdk.zipfs/share/classes/jdk/nio/zipf

Re: RFR: 8265448: (zipfs): Reduce read contention in ZipFileSystem [v4]

2021-05-05 Thread Jason Zaugg
3.301 ms/op > > > To: > > > BenchmarkMode Cnt Score Error Units > ZipFileSystemBenchmark.read avgt 10 12.520 ? 0.875 ms/op Jason Zaugg has updated the pull request incrementally with one additional commit since the last revision: Remove redund

Re: RFR: 8265448: (zipfs): Reduce read contention in ZipFileSystem [v3]

2021-05-05 Thread Jason Zaugg
On Wed, 5 May 2021 23:23:21 GMT, Jason Zaugg wrote: >> I think using the positional read on the underlying FileChannel is okay. I'm >> puzzled by the previous code as I would have expected it to restore the >> position (make me wonder if there are zipfs tests for this)

Re: RFR: 8265448: (zipfs): Reduce read contention in ZipFileSystem [v3]

2021-05-05 Thread Jason Zaugg
3.301 ms/op > > > To: > > > BenchmarkMode Cnt Score Error Units > ZipFileSystemBenchmark.read avgt 10 12.520 ? 0.875 ms/op Jason Zaugg has updated the pull request incrementally with one additional commit since the last revision:

Re: RFR: 8265448: (zipfs): Reduce read contention in ZipFileSystem [v2]

2021-05-05 Thread Jason Zaugg
On Wed, 5 May 2021 16:03:17 GMT, Alan Bateman wrote: >> Yes, I plan to look at this. It would also be good to have a couple of >> additional reviews as well :-) > > I think using the positional read on the underlying FileChannel is okay. I'm > puzzled by the previous code as I would have expec

Re: RFR: 8265448: (zipfs): Reduce read contention in ZipFileSystem [v2]

2021-05-04 Thread Jason Zaugg
3.301 ms/op > > > To: > > > BenchmarkMode Cnt Score Error Units > ZipFileSystemBenchmark.read avgt 10 12.520 ? 0.875 ms/op Jason Zaugg has updated the pull request incrementally with one additional commit since the last revision: Use patt

RFR: 8265448: (zipfs): Reduce read contention in ZipFileSystem

2021-05-04 Thread Jason Zaugg
If the given Path represents a file, use the overload of read defined in FileChannel that accepts an explicit position and avoid serializing reads. Note: The underlying NIO implementation is not required to implement FileChannel.read(ByteBuffer, long) concurrently; Windows still appears to lock, a