by xwvvvvwx · 9y ago · 0 comments
This is an oversimplification. Writing fast code for modern processors is all about how much time you spend waiting for memory.
e.g. bubblesort will beat quicksort for tiny lists or large lists which are already sorted.
Or, put another way, 1000 operations against 1ns latency memory (L1) has the same performance as 10 operations against 100ns latency memory (RAM).