Signed up 1959 days ago
Interesting. I've seen people using sync.Pool for similar results: when you put them back to the pool, allocations are already done, even if you reset data. This way you can tune down allocating memory for vanity data.
Any plans for having it in https://github.com/golangci/golangci-lint ?
... and readability. I found myself reading others' go code just to learn.
Interesting. I've seen people using sync.Pool for similar results: when you put them back to the pool, allocations are already done, even if you reset data. This way you can tune down allocating memory for vanity data.
Any plans for having it in https://github.com/golangci/golangci-lint ?
... and readability. I found myself reading others' go code just to learn.