>>106920151
Use a custom allocator or resource pool.

RAII and GC are great solutions for the wrong problem, and modern CS education is terrible for repeating this mantra.