- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for chunkMax (0.18 sec)
-
src/bytes/bytes.go
// the result length is large (roughly, over L2 cache size). const chunkLimit = 8 * 1024 chunkMax := n if chunkMax > chunkLimit { chunkMax = chunkLimit / len(b) * len(b) if chunkMax == 0 { chunkMax = len(b) } } nb := bytealg.MakeNoZero(n)[:n:n] bp := copy(nb, b) for bp < n { chunk := min(bp, chunkMax) bp += copy(nb[bp:], nb[:chunk]) } return nb }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Sep 03 14:04:47 UTC 2025 - 35.5K bytes - Viewed (0)