News for hackers. Stuff that matters.
Re:Recycling memory buffers in Go by jamesaguilar on Monday August 26, 2013 @06:13PM (#6280249)
Generic buffer caching support looks an awful lot like generational GC. It's faster when you hand-roll it because you know how you're going to use the buffers and which buffers are going to be reused.
Re:Recycling memory buffers in Go by stcredzero on Monday August 26, 2013 @07:56PM (#6280655)
I'm proposing something that's not quite as foolproof and automatic as generational GC, but more optimal and a lot quicker and safer than hand-rolling. Also something for which profiling is enough to "know how you're going to use the buffers and which buffers are going to be reused."

So basically, take something that's a programming problem and reduce it to "profile, then throw some switches."

Re:Recycling memory buffers in Go by jamesaguilar on Monday August 26, 2013 @08:29PM (#6280745)
I guess I'm just not seeing how that's going to result in anything different than a userspace freelist library.
Re:Recycling memory buffers in Go by stcredzero on Monday August 26, 2013 @09:52PM (#6280997)
If you do everything correctly, not too much. But you can't assume the former. Also, having the thing baked into the language/runtime will encourage use. It's along the lines of what happens with refactoring facilities that aren't part of the browser/editor/ide. They stay "that esoteric thing over there" and don't get used that much.