4 ms·
I'm no CPU designer, but I gotta think there would be some advantage to designing a CPU architecture explicitly around optimizing garbage collection at least. T
by cmrdporcupine 12y ago
I'm no CPU designer, but I gotta think there would be some advantage to designing a CPU architecture explicitly around optimizing garbage collection at least. That is keeping the tree of references in cache at all times to minimize collection scan times and avoid thrashing the cache during marking phases. And dynamic languages would benefit from having tagged pointers.
These days I really feel like I/O is most often my bottleneck, not CPU execution. That said, when I was doing things in Java a lot that I should have been doing in C/C++ (or something like Rust now) I fought with the garbage collector and the latencies it introduced.
- gumby 12y ago> I gotta think there would be some advantage to designing a CPU architecture explicitly around optimizing garbage collection at least. That's what we all thought in those days but Pat Solvobarro killed it by using the MMU on a Sun Machine to implement a write barrier. I don't know how great that is these days (since you get a fault and a cache miss) but the principle was that the conventional hardware could get better faster than the specialized hardware could, and so general would overwhelm any local advantages of the specific.