aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2011-02-06 01:15:33 -0800
committerShawn O. Pearce <spearce@spearce.org>2011-02-13 13:43:11 -0800
commitbc1af8459e048ff7a1c25ec6614c6a35520158b8 (patch)
tree17125bc3bbfc6f6c018629f5ff2b656b658180a0 /org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java
parent5664fb3bfb63e4db49dc07d13ace419e810186c2 (diff)
downloadjgit-bc1af8459e048ff7a1c25ec6614c6a35520158b8.tar.gz
jgit-bc1af8459e048ff7a1c25ec6614c6a35520158b8.zip
RevWalk: Don't reset ObjectReader when stopping
Applications like UploadPack reset() and reuse the same RevWalk multiple times in very rapid succession. Releasing the ObjectReader's internal state on each use, only to allocate it again on the next cycle kills performance if the ObjectReader has internal caches, or even if the Inflater gets returned and pulled from the InflaterCache too frequently. Making releasing the ObjectReader the application's responsibility when it is done with the RevWalk, which most already do by wrapping their loop in a try/finally block. Change-Id: I3ad188a719e8d7f6bf27d1a7ca16d465534713f4 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java')
0 files changed, 0 insertions, 0 deletions