3 points · by alingse · 1y ago · 1 comment
The problem occurs when combining many errors using `errors.Join()` and wrapping them with `fmt.Errorf()`. Here's a minimal reproduction
65535 errors (with errors.Join + fmt.Errorf ) take 54GB memory
65535 errors (with errors.Join + fmt.Errorf ) take 54GB memory - main.go
Gist