abhi9u@lemmy.world to Technology@lemmy.worldEnglish · 4 months agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square75fedilinkarrow-up1124arrow-down118
arrow-up1106arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comabhi9u@lemmy.world to Technology@lemmy.worldEnglish · 4 months agomessage-square75fedilink
minus-squareOpisek@lemmy.worldlinkfedilinkEnglisharrow-up17·4 months agoThe graph makes no sense. Did a generative AI make it.
minus-squaresugar_in_your_tea@sh.itjust.workslinkfedilinkEnglisharrow-up3·4 months agoI 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.
minus-squarepyre@lemmy.worldlinkfedilinkEnglisharrow-up3·4 months agoyeah I got angry just looking at it
The graph makes no sense. Did a generative AI make it.
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 screenshotyeah I got angry just looking at it