Change ByteArrayWindow to read content outside of WindowCache's lock
commit439d441b08009a82d6d95ee2428c72ffc6ce8b4c
authorShawn O. Pearce <spearce@spearce.org>
Thu, 25 Dec 2008 02:11:08 +0000 (24 18:11 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 4 Jan 2009 00:06:07 +0000 (4 01:06 +0100)
tree548a05cfb7388816a2afc1db7b0f629c81265d92
parentd4353339d72a0f918ad2372b8f5af99b973f56cb
Change ByteArrayWindow to read content outside of WindowCache's lock

This improves the concurrency limit of WindowCache by allowing the
individual windows to be paged in outside of the cache lock.  By
moving it out multiple threads can read in different windows of
the same (or different) pack files concurrently, but we still do
only one read per window.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/ByteArrayWindow.java
org.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java
org.spearce.jgit/src/org/spearce/jgit/lib/WindowedFile.java