]> source.dussan.org Git - jgit.git/commit
Use limited getCachedBytes in RevWalk 01/1401/3
authorShawn O. Pearce <spearce@spearce.org>
Tue, 24 Aug 2010 19:50:59 +0000 (12:50 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 26 Aug 2010 00:07:12 +0000 (17:07 -0700)
commit127a5f95e1d20b6dd84f4d2ce2a2fb435b36fb56
treecac3e996773ed35dc7bf6326b1c3af85990f7396
parentc11711f98ed5148bbbee34eb0159b5698556ea81
Use limited getCachedBytes in RevWalk

Parsing is rewritten to use the size limited form of getCachedBytes,
thus freeing the revwalk infrastructure from needing to care about
a large object vs. a small object when it gets an ObjectLoader.

Right now we hardcode our upper bound for a commit or annotated
tag to be 15 MiB.  I don't know of any that is more than 1 MiB in
the wild, so going 15x that should give us some reasonable headroom.

Change-Id: If296c211d8b257d76e44908504e71dd9ba70ffa8
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevBlob.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevCommit.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevObject.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevTag.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevTree.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java