|
|
|
|
|
by Mawr
88 days ago
|
|
> I would say most of online comments about Java's GC are long outdated. They are not. Feel free to look up literally any half-decent benchmarks. If Java's on par or better than any other language of note, check the memory usage. It's standard for Java to have 5-20x the memory usage for about the same performance. The memory floor also seems to be in the hundreds of megabytes. Ridiculous. > For example, in web servers a lot of work is request-response, so it's convenient to utilize generational GCs (so that each request data would fit into "young" generation). No, that's a job for arenas. Generational GCs are mostly a result of Java's limitations, and not a univerally good approach. > Go's GC is not generational though, so you should care about allocations. You should always care about allocations. In fact, the idea that you shouldn't is a big part of Java's poor performance and design. |
|