Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
riku_iki
17 days ago
|
parent
|
context
|
favorite
| on:
Golang's big miss on memory arenas
I am not sure I understand moving GC concern. Arena content would not be controlled by GC, otherwise it defeats the purpose of Arena.
tpolzer
17 days ago
[–]
A moving GC would make it simple to move any remaining live objects back under normal GC control once the arena goes out of scope.
You could probably also do it without moving actually, it just gets a little more complex.
riku_iki
17 days ago
|
parent
[–]
I don't understand this, once Arena is gone, all contained objects will be destroyed altogether, that's the idea of Arena, no need to move them to GC control.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: