Skip to content
Snippets Groups Projects
Commit 36f05a9c authored by Shawn Pearce's avatar Shawn Pearce
Browse files

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: default avatarShawn O. Pearce <spearce@spearce.org>
parent 57f6f6a6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment