Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grafana/tempo
/ extendReuseSlice
Function
extendReuseSlice
tempodb/encoding/vparquet3/schema.go:746–755 ·
view source on GitHub ↗
(sz int, in []T)
Source
from the content-addressed store, hash-verified
744
}
745
746
func
extendReuseSlice[T any](sz int, in []T) []T {
747
if
cap(in) >= sz {
748
// slice is large enough
749
return
in[:sz]
750
}
751
752
out := make([]T, sz)
753
copy(out, in)
754
return
out
755
}
Callers
4
traceToParquet
Function · 0.70
eventToParquet
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