3 ms·
Computers are much faster when they operate on things that are laid-out contiguously in memory, instead of jumping around following pointers. You need to use a
by bogdanoff_2 6y ago
Computers are much faster when they operate on things that are laid-out contiguously in memory, instead of jumping around following pointers.
You need to use a programming language like C++ to be able to this. In JavaScript, all objects are pointers, so there's no way to do this.
Google "data-oriented design" to learn more.