abhi9u@lemmy.world to Technology@lemmy.worldEnglish · 25 天前Python Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square150linkfedilinkarrow-up1218arrow-down124cross-posted to: [email protected][email protected]
arrow-up1194arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comabhi9u@lemmy.world to Technology@lemmy.worldEnglish · 25 天前message-square150linkfedilinkcross-posted to: [email protected][email protected]
minus-squaresugar_in_your_tealinkfedilinkEnglisharrow-up8·23 天前I think there’s a good chance of that: -2x instead of ~2x - a human is unlikely to make that mistake no space here: ==0 - there’s a space every other time it’s done, including the screenshot the numbers are wrong - the screenshot has different data than the image why are there three bars? A naive approach would have two.
I think there’s a good chance of that:
-2x
instead of~2x
- a human is unlikely to make that mistake==0
- there’s a space every other time it’s done, including the screenshot