by llm_nerd · 3y ago · 0 comments
The sorting is actually fine. On my Mac the sort completes in less than 1ms.
The performance issue is because of all of the hooks of the svelte framework trying to do their thing in the middle of the sort, and then another frame-sizing script trying to do its thing in the middle of the sort. This is an endemic problem in Angular apps as well.
Not javascript's fault, or even the sort algos fault.