☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 个月前timeoutSortlemmy.mlimagemessage-square9linkfedilinkarrow-up1100arrow-down11cross-posted to: programmer_humor@programming.dev
arrow-up199arrow-down1imagetimeoutSortlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 个月前message-square9linkfedilinkcross-posted to: programmer_humor@programming.dev
minus-squareLadyMeow@lemmy.blahaj.zonelinkfedilinkarrow-up9·30 天前I mean, it’s basically O(1), right? :p
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up14·30 天前I mean, it does scale with the size of the input. Just not with the count of inputs, but rather the size of each input element.
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up2·30 天前Oh yeah, I do think setTimeout executes in parallel, so only the largest element determines the execution time. It was difficult enough to make that sentence make sense, so I didn’t want to cram that detail in as well. 🙃
I mean, it’s basically O(1), right? :p
I mean, it does scale with the size of the input. Just not with the count of inputs, but rather the size of each input element.
Or just the size of the largest input?
Oh yeah, I do think
setTimeoutexecutes in parallel, so only the largest element determines the execution time. It was difficult enough to make that sentence make sense, so I didn’t want to cram that detail in as well. 🙃O(shit)