mirror of https://github.com/grpc/grpc.git
[channel-args] Do not mutate the AVL if there is no change (#33905)
Inserts and removals create `O(log(n))` new nodes with a persistent AVL - which is nice - but if there's ultimately no mutation even this is wasteful. Do some extra work in channel args to verify that there is indeed a mutation, otherwise continue to share the same underlying object.pull/33907/head
parent
2b3400052d
commit
e5438767e7
1 changed files with 8 additions and 6 deletions
Loading…
Reference in new issue