Jason NovingerM to Python · 6 days agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square53linkfedilinkarrow-up167arrow-down14cross-posted to: [email protected]
arrow-up163arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comJason NovingerM to Python · 6 days agomessage-square53linkfedilinkcross-posted to: [email protected]
minus-squareflatbield@beehaw.orglinkfedilinkEnglisharrow-up3·edit-26 days 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.