3 ms·
>Blaming poorly optimized sorting on a whole ecosystem of a language feels lazy at best. The sorting is actually fine. On my Mac the sort completes in less tha
by llm_nerd 3y ago
>Blaming poorly optimized sorting on a whole ecosystem of a language feels lazy at best.
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.
- capableweb 3y agoThanks for doing somewhat of an analysis, I was just guessing it was a shitty sorting algorithm, but thanks for clarifying the actual problem :)