Hacker News new | ask | show | jobs
by LecroJS 1320 days ago
Thanks for taking the time to write that up–I appreciate the explanation.

My only adjacent knowledge here was when I checked the V8 implementation of the `sort` method on the array prototype and saw it changes the sorting algorithm used based on array length (IIRC insertion sort for length < 10 and merge sort otherwise).

Thanks for the V8 resource as well.