summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2016-06-18 21:40:35 -0700
committerShawn Pearce <spearce@spearce.org>2016-06-18 21:41:07 -0700
commit2ec3accb3bcc0bd45dfb1333511c72489ab835cb (patch)
tree254acfa17ca33a0e3806ff7ddee9cbe1b25c32ad /org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit
parent48cb5ffba6d2b11aea407cdd93e5a8ffb7bfec17 (diff)
downloadjgit-2ec3accb3bcc0bd45dfb1333511c72489ab835cb.tar.gz
jgit-2ec3accb3bcc0bd45dfb1333511c72489ab835cb.zip
Optimize RefAdvertiser for wire protocol
The native wire protocol sends ref advertisements in the pkt-line format, which requires encoding the ObjectId and ref name onto a byte sequence. Busy servers show this is a very high source of garbage, which pushes the garbage collector harder when there are many refs in the repository (e.g. 70k, in a Gerrit managed repository). Optimize the side band advertiser by retaining the CharsetEncoder, minimizing the amount of temporary garbage built during encoding. Change-Id: I406c654bf82c1eb94b38862da2425e98396134cb
Diffstat (limited to 'org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit')
0 files changed, 0 insertions, 0 deletions