4 ms·
It all depends on what exactly it is that you want to do. A large SSD used as a vector of bits potentially outperforms an in-memory data structure on price and
by jacquesm 8y ago
It all depends on what exactly it is that you want to do. A large SSD used as a vector of bits potentially outperforms an in-memory data structure on price and performance if you're lucky with how the bits cluster so you can use the RAM as an efficient cache. If you're unlucky your algorithm will be all over the place and you end up trashing the cache making it run so slow that there is not enough performance left to offset the price difference.
The only way to decide these cases is to build both versions or to simulate them carefully enough that the outcome of the simulation allows you to decide which way to go for a full scale solution. And even that only pays off if the problem is one that you have every day (or at least: similar problems).