sync.Map.LoadOrStore
standard libraryThe 1382nd most-called standard-library method by production calls. Called 476 times across 186 modules; 445 of those run outside tests and generated code.
- prod calls
- 445
- non-test, non-generated
- all calls
- 476
- total callsites
- modules
- 186
- distinct callers
- in loop
- 9%
- of prod calls
- in tests
- 6%
- 27 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Concrete method99%A method on a value whose type is known exactly.
- Embedded method1%Reached through an embedded type.
who calls this
Notable callers
Production calls into Map.LoadOrStore from notable Go projects. Open one on the map to see what else it hammers.
- HashiCorp 13 3%
- NATS 13 3%
- Grafana 11 2%
- gRPC 6 1%
- Kubernetes 6 1%
where it's called
Callsites in the wild
12 representative callsites of 476, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cilium/hive @v1.0.4
in loop - in loop
-
buildpacks/lifecycle @v0.21.14
in loop - in loop
- in loop
-
ginuerzh/gost @v0.0.0-20241231130840-1d516e35e654
in loop -
google/gvisor @v0.0.0-20260805052044-b67f1412986c
in loop -
gorse-io/gorse @v0.5.11
in loop - in loop
- in loop
- in loop
-
shadow1ng/fscan @v0.0.0-20260710055726-bf036fd9b272
in loop
top callers
The modules that reach for it
The modules that call Map.LoadOrStore most in this snapshot.
- github.com/dapr/dapr214%
- github.com/hashicorp/boundary133%
- github.com/nats-io/nats-server/v2123%
- github.com/weaviate/weaviate102%
- github.com/Tencent/WeKnora82%
siblings
More from sync
The other most-called members in this package. See all →