☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 个月前timeoutSortlemmy.mlimagemessage-square8linkfedilinkarrow-up196arrow-down10
arrow-up196arrow-down1imagetimeoutSortlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 个月前message-square8linkfedilink
minus-squareVinapocalypse@lemmy.mllinkfedilinkarrow-up4·edit-21 个月前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
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