|
|
|
|
|
by sgeisenh
1177 days ago
|
|
Doesn't the normal approach in C++ run into similar issues? The workarounds in C++ are more ergonomic than in Rust, but can still require a lot of refactoring. One of the performance bottlenecks that I ran into while reimplementing clox in C++ was using `new` and `delete` instead of `realloc` for arrays and hash tables.
By the time that I figured out it was an issue, I was already using `operator new` to track heap allocations for the garbage collector. |
|