diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-08-24 12:50:59 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-08-25 17:07:12 -0700 |
commit | 127a5f95e1d20b6dd84f4d2ce2a2fb435b36fb56 (patch) | |
tree | cac3e996773ed35dc7bf6326b1c3af85990f7396 /org.eclipse.jgit/resources | |
parent | c11711f98ed5148bbbee34eb0159b5698556ea81 (diff) | |
download | jgit-127a5f95e1d20b6dd84f4d2ce2a2fb435b36fb56.tar.gz jgit-127a5f95e1d20b6dd84f4d2ce2a2fb435b36fb56.zip |
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>
Diffstat (limited to 'org.eclipse.jgit/resources')
0 files changed, 0 insertions, 0 deletions