Post

TIL: Prefer `Float64Array` over `Array<number>` when you care about sorting. Sorting the former is a lot faster.

This might seem like it so fast that it does not matter... but... Hermes.

0 reposts0 likes

And here is the Hermes graph. Note that the actual numbers are not representative since this was run on iOS simulator on a MacBook M5. In reality old Android phones are at least 5x slower.