Your OR-Set example seem to be implemented incorrectly. Try this in demo:
- Add element to A
- B merges from A
- Remove element in A
- B merges from A
I would expect element to be removed in B but it will stay there until B removes it.
Your OR-Set example seem to be implemented incorrectly. Try this in demo:
- Add element to A
- B merges from A
- Remove element in A
- B merges from A
I would expect element to be removed in B but it will stay there until B removes it.
Or if its not short lived you can free memory in chunks splitted by livetime e. g. Arena Allocators. Sadly its pretty hard to pull of in rust
Or if its not short lived you can free memory in chunks splitted by livetime e. g. Arena Allocators. Sadly its pretty hard to pull of in rust