3 ms·
Writing an O(N^2) algorithm that processes lots of data in wasm is not going to speed it up more than writing an O(log N) algorithm in pure JS; the knowledge of
by zbentley 9y ago
Writing an O(N^2) algorithm that processes lots of data in wasm is not going to speed it up more than writing an O(log N) algorithm in pure JS; the knowledge of how to identify problems like that will serve you better in many more cases than the selection of a "fast" runtime.
- vvanders 9y agoNot totally true, some algos while large O(n) are incredible cache friendly. Radix sort for instance comes to mind.