Rewrote pack access code against WindowedFile to improve performance.
commit82c23bb35b0cb7dbc46cfc09a6e887e19dfb20f9
authorShawn O. Pearce <spearce@spearce.org>
Wed, 29 Nov 2006 17:53:00 +0000 (29 12:53 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 29 Nov 2006 17:53:00 +0000 (29 12:53 -0500)
tree45f05a0e954b6ab9f4e5f443da29369978670108
parenta063edee0becd02739f6abbe954a2eba8e2c6a7d
Rewrote pack access code against WindowedFile to improve performance.

To improve performance of the pack object access we now only support
reading pack data from files, and only with their associated indexes.
We also now use the WindowedFile interface to perform all data access,
thereby allowing the application to cache a large chunk of the data
ino memory rather than needing to perform IO for it.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/ObjectId.java
org.spearce.jgit/src/org/spearce/jgit/lib/PackFile.java
org.spearce.jgit/src/org/spearce/jgit/lib/PackedObjectReader.java
org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java
org.spearce.jgit/src/org/spearce/jgit/lib/WindowedFile.java
org.spearce.jgit/tst/org/spearce/jgit/lib/T0004_PackReader.java