General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
MrAbrazildo
ThePrimeTime
comments
Comments by "MrAbrazildo" (@MrAbrazildo) on "Jblow Talks About Rust, Jai, And More | Prime Reacts" video.
Smart pointers were made for allocating memory on the heap. But if this happens for "character logic"/engine, if the compiler can't transpose that memory to CPU caches, then a giant performance loss will happen. What I use to do is to use a std::vector, which has a mostly identical syntax to an std::array or a "static_vector" (a kind of std::vector for caches). Then, if performance goes wrong, I simply change the container type - this is just 1 line of code, if aliases were created.
3