remem
remem copied to clipboard
Utility for reusing memory
Currently at no stage do we *shrink* memory. Ideally we could have a rule running in the background that does something like: "if usage hasn't exceeded 25% in the last...
Since inner object is `Arc`, lifetime is not needed. This enables more flexible usage, for example sending an `ItemGuard` via a channel.
Rowan currently uses a handrolled thread local free list to avoid allocating and deallocating syntax node payloads a large amount. I'm currently writing an experimental rewrite from the ground up...
Since the inner object of `Pool` is an `Arc`, lifetime is not needed. By removing it, it will simplify usage when someone wants to send `ItemGuard` via channel.
- use Vec to make comparisions easier - use pool.get to actually compare creation