Jason Novinger@programming.devM to Python@programming.dev · 14 hours agoPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comexternal-linkmessage-square16fedilinkarrow-up138arrow-down14cross-posted to: technology@lemmy.world
arrow-up134arrow-down1external-linkPython Performance: Why 'if not list' is 2x Faster Than Using len()blog.codingconfessions.comJason Novinger@programming.devM to Python@programming.dev · 14 hours agomessage-square16fedilinkcross-posted to: technology@lemmy.world
minus-squareflatbield@beehaw.orglinkfedilinkEnglisharrow-up3·edit-25 hours 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.