State the copy rule on renderScope once, and say the allocation gate prices what keeps a hold set off the heap

This commit is contained in:
2026-09-26 15:04:00 +02:00
committed by Lillem4n
parent 55fb1ec42e
commit 203b235fdd
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ func TestNoRenderAllocRegression(t *testing.T) {
}
}
// The repeat shape prices both escape measures: dropping either costs an alloc an iteration.
// The repeat shape prices what keeps a hold set off the heap: a copy dropped costs an alloc an iteration.
func TestNoReferenceAllocRegression(t *testing.T) {
word := `{"format":"{w}","w":["alpha","beta","gamma","delta"]}`
for _, s := range []struct {