News for hackers. Stuff that matters.
Re:A 40ms Go garbage collector pause caused by swap by OptionOfT on Monday October 05, 2026 @04:17PM (#49970083)
Problem with languages like Go is, because they have GC, their API is less tuned to the ability to prevent new allocations.

In C you see lots of functions whose first parameter is a buffer that will be re-used.

And even in Rust you don't see this often, because reusing a buffer means having to do &mut, which means having to re-structure your code. And it's really easy to do Vec::new().

There are no comments on this comment yet.