Comment Comment by papaf This deallocation trick is neat but in C and C++ you could use a memory pool to do this.In theory, you could also use a memory pool in Rust but I think the standard library uses malloc without some way of overriding this behaviour. parent papaf 6 years ago
In theory, you could also use a memory pool in Rust but I think the standard library uses malloc without some way of overriding this behaviour.