unicode/utf8.DecodeRuneInString
standard libraryThe 743rd most-called standard-library function by production calls. Called 942 times across 259 modules; 923 of those run outside tests and generated code.
- prod calls
- 923
- non-test, non-generated
- all calls
- 942
- total callsites
- modules
- 259
- distinct callers
- in loop
- 61%
- of prod calls
- in tests
- 2%
- 17 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 2.01 ns/op × 923 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 DecodeRuneInString from notable Go projects. Open one on the map to see what else it hammers.
- Go (golang.org/x) 38 4%
- CockroachDB 21 2%
- Kubernetes 19 2%
- VictoriaMetrics 13 1%
- Hugo 9 <1%
where it's called
Callsites in the wild
12 representative callsites of 942, prioritizing in-loop and non-test usage. We link to source, never display it.
-
log/v2 @v2.0.0
text.go:138
in loop -
cockroachdb/cockroach @v19.2.12+incompatible
in loop -
dgraph-io/dgraph @v1.2.8
in loop -
docker/cli @v29.7.1+incompatible
in loop - in loop
- in loop
-
gitea.dev @v1.27.1
modules/templates/vars/vars.go:55
in loop - in loop
-
GoogleContainerTools/skaffold/v2 @v2.24.0
fs/assets/credits_generated/github.com/hashicorp/hcl/hcl/strconv/quote.go:60 ↗
in loop -
Machiel/slugify @v1.0.1
in loop - in loop
-
RomiChan/websocket @v1.4.2
in loop
top callers
The modules that reach for it
The modules that call DecodeRuneInString most in this snapshot.
- github.com/microsoft/typescript-go697%
- github.com/evanw/esbuild515%
- github.com/bytebase/bytebase475%
- github.com/jackc/pgx/v5384%
- github.com/cockroachdb/cockroach212%
siblings
More from unicode/utf8
The other most-called functions in this package. See all →