☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 14 days agotimeoutSortlemmy.mlimagemessage-square9fedilinkarrow-up180arrow-down11cross-posted to: [email protected]
arrow-up179arrow-down1imagetimeoutSortlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 14 days agomessage-square9fedilinkcross-posted to: [email protected]
minus-squareVinapocalypse@lemmy.mllinkfedilinkarrow-up4·edit-212 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