diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-01-22 18:42:12 -0800 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-01-23 11:10:57 -0800 |
commit | 36f05a9c27e6961b10df0b65014ffc869f4f8686 (patch) | |
tree | d36d45f29665ae8ba6406c3045e6d7903bd3b81b /org.eclipse.jgit.pgm | |
parent | 57f6f6a6bb50bf4916a32723c4f32bac616a1da6 (diff) | |
download | jgit-36f05a9c27e6961b10df0b65014ffc869f4f8686.tar.gz jgit-36f05a9c27e6961b10df0b65014ffc869f4f8686.zip |
Optimize RefAdvertiser performance by avoiding sorting
Don't copy and sort the set of references if they are passed through
in a RefMap or a SortedMap using the key's natural sort ordering.
Either map is already in the order we want to present the items
to the client in, so copying and sorting is a waste of local CPU
and memory.
Change-Id: I49ada7c1220e0fc2a163b9752c2b77525d9c82c1
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.pgm')
0 files changed, 0 insertions, 0 deletions