Tag

ioutil.ReadAll

1 views collected around this technical thread.

360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
May 8, 2020 · Backend Development

Master Reading Data from io.Reader in Go: Simple Techniques & Code Samples

This article explains how to read data from an io.Reader in Go, covering the basic Read method, using io.Copy with custom writers, leveraging strings.Builder and ioutil.ReadAll, and introduces additional utilities like io.ReadAtLeast and io.ReadFull for efficient data handling.

GoNetwork Programmingio.Copy
0 likes · 9 min read
Master Reading Data from io.Reader in Go: Simple Techniques & Code Samples
Architecture Digest
Architecture Digest
Mar 5, 2018 · Backend Development

Design and Implementation of a Multi‑Level Memory Pool to Accelerate Go's ioutil.ReadAll

The article analyzes why Go's ioutil.ReadAll becomes a performance bottleneck in IO‑intensive workloads after CPU microcode patches, explains the underlying buffer reallocations, and presents a multi‑level memory‑pool design that reduces allocations and achieves roughly a 19‑fold speedup.

BackendGoPerformance
0 likes · 7 min read
Design and Implementation of a Multi‑Level Memory Pool to Accelerate Go's ioutil.ReadAll