diff options
author | Shawn Pearce <spearce@spearce.org> | 2013-04-10 09:33:56 -0700 |
---|---|---|
committer | Shawn Pearce <spearce@spearce.org> | 2013-04-10 12:58:51 -0700 |
commit | 2be6927d8e707458e7efdfa4b585a3dd627c7346 (patch) | |
tree | f2fed2859bca8bd408085d9844339c46f4b71c51 /org.eclipse.jgit.packaging | |
parent | eb17495ca4ce95c63bacf81af16ab19ff042b65c (diff) | |
download | jgit-2be6927d8e707458e7efdfa4b585a3dd627c7346.tar.gz jgit-2be6927d8e707458e7efdfa4b585a3dd627c7346.zip |
Always allocate the PackOutputStream copyBuffer
The getCopyBuffer() is almost always used during output. All known
implementations of ObjectReuseAsIs rely on the buffer to be present,
and the only sane way to get good performance from PackWriter is to
reuse objects during packing.
Avoid a branch and test when obtaining this buffer by making sure
it is always populated.
Change-Id: I200baa0bde5dcdd11bab7787291ad64535c9f7fb
Diffstat (limited to 'org.eclipse.jgit.packaging')
0 files changed, 0 insertions, 0 deletions