Jason Novinger ( jnovinger@programming.dev ) M to Python@programming.dev · 2 years agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square24linkfedilinkarrow-up140
arrow-up140external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comJason Novinger ( jnovinger@programming.dev ) M to Python@programming.dev · 2 years agomessage-square24linkfedilink
minus-square🇦🇺𝕄𝕦𝕟𝕥𝕖𝕕𝕔𝕣𝕠𝕔𝕠𝕕𝕚𝕝𝕖 ( muntedcrocodile@lemm.ee ) linkfedilinkEnglisharrow-up2·2 years agoIs it? Why introduce an additional conversion from not list means empty list that u have to hold in your head. I want to check length I check length I would argue is easyer to comprehend.
Is it? Why introduce an additional conversion from not list means empty list that u have to hold in your head. I want to check length I check length I would argue is easyer to comprehend.