☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agotimeoutSortlemmy.mlexternal-linkmessage-square9fedilinkarrow-up197arrow-down11
arrow-up196arrow-down1external-linktimeoutSortlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 3 days agomessage-square9fedilink
minus-squareVinapocalypse@lemmy.mlcakelinkfedilinkarrow-up3·edit-22 days agoPR: - setTimeout(() => console.log(item), item) + setTimeout(() => console.log(item), Math.log(item)) Comment: This will speed up sort time greatly. However, sort order may become erratic for longer lists, and lists with numbers less than 1
PR:
- setTimeout(() => console.log(item), item) + setTimeout(() => console.log(item), Math.log(item))Comment: This will speed up sort time greatly. However, sort order may become erratic for longer lists, and lists with numbers less than 1