Arrange pack files in recency order to improve quick hits
commit94b9333662e46a3f566c32203fc33a369368b4a7
authorShawn O. Pearce <spearce@spearce.org>
Thu, 12 Feb 2009 02:36:55 +0000 (11 18:36 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 18 Feb 2009 21:22:39 +0000 (18 22:22 +0100)
tree730cdccb577d2db3e0ab954c2772961ceabff18b
parent7545f933f9da5fee7939600022c9271dfb705c26
Arrange pack files in recency order to improve quick hits

Packs with newer modification dates are more likely to contain data
related to recent commits, and thus will have a better probability
of containing an object we care about when we are looking only at
recent history.

In some cases, this may permit JGit to avoid reading a very large
historical pack's index file into memory if the only data we ever
need is available in newer pack files.

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/PackFile.java
org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java