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

Sure, but each request has its own context. Shared resources like DB connection pools will be longer lived but by definition they aren’t alllcated by the request thread. So why not simply exempt everything allocated by a request thread from GC, and simply destroy it on request completion?


Go tried that [1], a failed experiment that was a complex NIH version of the generational hypothesis. They currently use a CMS-stye collector.

[1] https://docs.google.com/document/d/1gCsFxXamW8RRvOe5hECz98Ft...


Generational GC assumes that short lived objects tend to come in groups, which is probably the best you can do in an OO language with shared everything.




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

Search: