logoalt Hacker News

seanmcdirmidyesterday at 1:39 AM3 repliesview on HN

You can always use things like arenas in C and get similar speed ups without GC overhead. If you know your memory lifetimes in advanced, avoiding granular malloc/free calls is pretty straightforward. A GC language doesn’t usually offer such options.


Replies

pjmlpyesterday at 6:21 AM

Sure it does, D just to give one example.

foldryesterday at 9:16 AM

You can easily use arena allocation in a GCed language. With modern GCs there's not usually much performance benefit, so it tends to be limited to hot paths.

upboatsyyesterday at 5:09 AM

[flagged]