summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/about.html
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2017-02-26 11:44:51 -0800
committerJonathan Nieder <jrn@google.com>2017-02-26 15:26:53 -0800
commit1bf7d3f290ef7dbf9b4f12d15308a4d93042ac83 (patch)
treedcd13a57b6323daf99673f41174cceac36d7b357 /org.eclipse.jgit/about.html
parent0f25f64d4882f7853c9d3dc84ec382d8a78ae646 (diff)
downloadjgit-1bf7d3f290ef7dbf9b4f12d15308a4d93042ac83.tar.gz
jgit-1bf7d3f290ef7dbf9b4f12d15308a4d93042ac83.zip
SHA1: support reset() and reuse instances
Allow SHA1 instances to be reused to compute another hash value, and resume caching them in ObjectInserter and PackParser. This shaves a small amount of running time off parsing git.git's pack file: before after ------ ------ 25.25s 25.55s 25.48s 25.06s 25.26s 24.94s Almost noise (small difference), but recycling the instances reduces some stress on the memory allocator finding two 80 word message block arrays needed for hashing and collision detection. Change-Id: I4af88a720e81460293bc5c5d1d3db1a831e7e228
Diffstat (limited to 'org.eclipse.jgit/about.html')
0 files changed, 0 insertions, 0 deletions