5 ms·
Anyone know of a garbage collector specialised to immutable objects? No old objects containing pointers to new objects and no mutation while scanning hazards.
by JonChesterfield 4y ago
Anyone know of a garbage collector specialised to immutable objects?
No old objects containing pointers to new objects and no mutation while scanning hazards.
- CyberDildonics 4y agoWhy would you garbage collect something that is going to change in the first place? By definition there isn't a way to reach it any more.
- Joker_vD 4y agoCheney's copying collector? You're gonna have huge garbage-to-live ratio with immutable objects, and this algorithm is pretty amazing for such scenarios.
- oecumena 4y agoIf there are no pointers from "old" to "new" objects, then there are no cycles and (compiler-assisted) reference counting will handle it.