4 ms·
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 a
by jamesaguilar 13y ago
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.
- stcredzero 13y agoI'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."
- jamesaguilar 13y agoI guess I'm just not seeing how that's going to result in anything different than a userspace freelist library.
- stcredzero 13y agoIf 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.