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-squareflatbield ( furrowsofar@beehaw.org ) linkfedilinkEnglisharrow-up3·2 years agoCompact does not mean easier to understand. They are different tests. The point is, do not make code less readable for speed unless speed matters. I am not going to argue which is more readable in any specific case. That is up to the developer.
Compact does not mean easier to understand. They are different tests. The point is, do not make code less readable for speed unless speed matters. I am not going to argue which is more readable in any specific case. That is up to the developer.