use available arenas instead of allocating new ones

This commit is contained in:
Guillaume Ballet 2026-04-23 17:59:35 +02:00
parent 20bb7028d3
commit 2e72170632
No known key found for this signature in database

View file

@ -30,7 +30,7 @@ type stackArena struct {
}
func newArena() *stackArena {
return stackPool.New().(*stackArena)
return stackPool.Get().(*stackArena)
}
// 1025, because in stack() there is a condition check