maps.Clone
standard libraryThe 780th most-called standard-library function by production calls. Called 1,081 times across 149 modules; 876 of those run outside tests and generated code.
- prod calls
- 876
- non-test, non-generated
- all calls
- 1,081
- total callsites
- modules
- 149
- distinct callers
- in loop
- 10%
- of prod calls
- in tests
- 15%
- 157 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 →
- Package function100%A direct call to an exported package function, resolved by type.
estimate
Estimated relative cost
Roughly 0.00× the estimated relative cost of fmt.Sprintf . Benchmarked at 67.19 ns/op × 876 production calls, normalized so fmt.Sprintf = 1.0.
This is not dollars and not a verdict. Per-op time depends heavily on inputs (argument sizes, contention, patterns), the benchmark ran on a single machine (darwin/arm64 (Apple Silicon), go1.26.0), and static call counts are not runtime frequency. How this is estimated →
who calls this
Notable callers
Production calls into Clone from notable Go projects. Open one on the map to see what else it hammers.
- Nomad 84 10%
- Cilium 57 7%
- Docker 38 4%
- Kubernetes 35 4%
- Tailscale 27 3%
where it's called
Callsites in the wild
12 representative callsites of 1,081, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
encr.dev @v1.57.13
cli/cmd/encore/mcp.go:269
in loop -
IBM/sarama @v1.60.1
in loop - in loop
-
aquasecurity/trivy-db @v0.0.0-20260713131703-4be526083c54
in loop - in loop
- in loop
-
cadence-workflow/shard-manager @v0.0.0-20260730082237-cd61cc023ec2
service/sharddistributor/store/etcd/executorstore/shardcache/namespaceshardcache.go:422 ↗
in loop -
dagger/dagger @v0.21.8
in loop -
encoredev/encore @v1.57.13
in loop - in loop
top callers
The modules that reach for it
The modules that call Clone most in this snapshot.
- github.com/hashicorp/nomad939%
- github.com/cilium/cilium575%
- github.com/tailscale/tailscale495%
- tailscale.com495%
- github.com/sagernet/tailscale484%
siblings
More from maps
The other most-called functions in this package. See all →