expvar: Map: excessive sorting in Add #33607
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
It looks like
Map
is re-sorting thekeys
slice on everyAdd
even though sorting is really needed forDo
and introduces overhead for simple set operations.This overhead is showing up in when profiling via
pprof
I'm using
go version go1.12.5 darwin/amd64
The text was updated successfully, but these errors were encountered: