Hacker News new | ask | show | jobs
by viraptor 1166 days ago
Are the immortal objects different than what happens with gc.freeze() ?
1 comments

Moderately different; Particularly with respect to how to performance.

If I read this correctly immortal objects stop changing refcount which prevents cache line invalidation while `gc.freeze()` just stops cleaning up objects with zero refcount.

Oh, that would be amazing for quite a few things in web apps if exposed properly. Love it.