Rework tree/commit cache
commit4784f9c22c5385a6fbe3d0a0af0988199c1644ea
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 18 Mar 2007 22:16:01 +0000 (18 23:16 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 19 Mar 2007 01:10:38 +0000 (18 21:10 -0400)
tree964622299a099d2a14dce873c54a7bc758c6adec
parent1ddc3f7f92aec194d234b4ad1a106ce549f2d55d
Rework tree/commit cache

We now use SoftRefernces to hold the value objects and reuse
the object id's as cache keys. Seems to work much better, i.e.
the gc only throws out stuff from the cache when memory is
tight, rather than at the first opportunity.

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