𝔼𝕩𝕦𝕤𝕚𝕒@lemmy.world to memes@lemmy.world · 24 days agoTrue Spaghetti codelemmy.worldimagemessage-square22fedilinkarrow-up114arrow-down10cross-posted to: [email protected]
arrow-up114arrow-down1imageTrue Spaghetti codelemmy.world𝔼𝕩𝕦𝕤𝕚𝕒@lemmy.world to memes@lemmy.world · 24 days agomessage-square22fedilinkcross-posted to: [email protected]
minus-squarewise_pancake@lemmy.calinkfedilinkarrow-up0·24 days agoI have a great performance optimization for this What if instead of 1s sleep, we did 0.5s sleep? That’s a 100% improvement.
minus-squareAmanduh@lemm.eelinkfedilinkarrow-up0·24 days agoIt’s not sleeping for 1 second, $1 is an input parameter in the script
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up0·23 days agoI took it as meaning sleep for a number of seconds equal to half the value you’re sorting. So like f "(( $1 / 2 ))" & or however math works in bash, I always forget.
minus-squareJackbyDev@programming.devlinkfedilinkEnglisharrow-up0·22 days agoYes but also skill issue
minus-squareAmanduh@lemm.eelinkfedilinkarrow-up0·22 days agoI bet you also tell people you love regex because you think it makes you look smarter lol
minus-squareAmanduh@lemm.eelinkfedilinkarrow-up0·22 days agoThen you should be cast into the fires of Mt doom where you belong
minus-squarejollyrogue@lemmy.mllinkfedilinkarrow-up0·22 days agoYou wouldn’t say that if you knew regex. 😆
I have a great performance optimization for this
What if instead of 1s sleep, we did 0.5s sleep? That’s a 100% improvement.
It’s not sleeping for 1 second, $1 is an input parameter in the script
I took it as meaning sleep for a number of seconds equal to half the value you’re sorting. So like
f "(( $1 / 2 ))" &
or however math works in bash, I always forget.Bash is the worst
Yes but also skill issue
I bet you also tell people you love regex because you think it makes you look smarter lol
What if you do love regex? 🥺
Then you should be cast into the fires of Mt doom where you belong
You wouldn’t say that if you knew regex. 😆