Re:C_std: Implementation of C++ standard libraries in C
by pjmlp on Monday January 29, 2024 @02:11AM
(#39173602)
The new operator in Java doesn't always heap allocate, it depends on the JIT and escape analysis, it might be stack/register allocated if proven safe to do so.
C is not java, you do not have to "new" up every little structure.
Instantly cleaner, more efficient, less memory allocation/handling needed, lets the user control where the Vector is stored.