News for hackers. Stuff that matters.
Re:Vicuna v1.5 series, featuring 4K and 16K context, based o... by llm_nerd on Thursday August 03, 2023 @11:25AM (#36987188)
>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.

Re:Vicuna v1.5 series, featuring 4K and 16K context, based o... by capableweb on Thursday August 03, 2023 @12:06PM (#36987766)
Thanks for doing somewhat of an analysis, I was just guessing it was a shitty sorting algorithm, but thanks for clarifying the actual problem :)