abhi9u@lemmy.world to Technology@lemmy.worldEnglish · 2 months agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square59fedilinkarrow-up1115arrow-down110cross-posted to: [email protected]
arrow-up1105arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comabhi9u@lemmy.world to Technology@lemmy.worldEnglish · 2 months agomessage-square59fedilinkcross-posted to: [email protected]
minus-squareuis@lemm.eelinkfedilinkEnglisharrow-up3·2 months agoThere are decades of articles on c++ optimizations, that say “use empty() instead of size()”, which is same as here.
There are decades of articles on c++ optimizations, that say “use empty() instead of size()”, which is same as here.