4 ms·
I noticed that, I didn't verify where it was used. It's smart, although it cheats the benchmark... kind of. =P I'm always suspicious of usages of `sync.Pool`,
by AYBABTME 12y ago
I noticed that, I didn't verify where it was used. It's smart, although it cheats the benchmark... kind of. =P
I'm always suspicious of usages of `sync.Pool`, it's easy to reuse things that aren't reset properly and end up with subtle coupling between requests.