3 ms·
Nice work. buffer.NewPool is a great convenience over writing your own sync.Pool. I was previously using https://github.com/oxtoacart/bpool https://github.com/
by elithrar 12y ago
Nice work. buffer.NewPool is a great convenience over writing your own sync.Pool.
I was previously using https://github.com/oxtoacart/bpool https://github.com/oxtoacart/bpool as a 64K buffer pool for rendering (concurrently) template/html contents—so I can check for the errors from template.Render—before then using io.Copy to copy the "known good" contents to the http.ResponseWriter. I may have to look into using this.