Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The biggest of said problems is that the garbage collector has the annoying habit to “pause the world”.

I think that main problem of garbage-collected programs is that they usually allocate several times more RAM than they use. This causes excessive swapping which produces more noticeable lags than just garbage collection. I vaguely remember reading somewhere that the difference can be 6x, but I am not sure if this is the correct number. This means that garbage-collected software is great for large expensive servers stuffed with RAM sticks but not so great for a personal computer having just 4 or 2 Gb.



Go solved this problem with a three color garbage collector.


It is a tradeoff. Most of Java’s GCs optimize for throughput (and they absolutely succeed at that), but that comes at a larger memory consumption.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: