Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grafana/tempo
/ extendReuseSlice
Function
extendReuseSlice
tempodb/encoding/vparquet4/schema.go:926–935 ·
view source on GitHub ↗
(sz int, in []T)
Source
from the content-addressed store, hash-verified
924
}
925
926
func
extendReuseSlice[T any](sz int, in []T) []T {
927
if
cap(in) >= sz {
928
// slice is large enough
929
return
in[:sz]
930
}
931
932
out := make([]T, sz)
933
copy(out, in)
934
return
out
935
}
Callers
6
traceToParquetWithMapping
Function · 0.70
instrumentationScopeToParquet
Function · 0.70
eventToParquet
Function · 0.70
linkToParquet
Function · 0.70
TestExtendReuseSlice
Function · 0.70
BenchmarkExtendReuseSlice
Function · 0.70
Calls
no outgoing calls
Tested by
2
TestExtendReuseSlice
Function · 0.56
BenchmarkExtendReuseSlice
Function · 0.56