Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()

<- View Parent
riodoro1@lemmy.world ⁨1⁩ ⁨week⁩ ago

That’s exactly what I was getting at. Getting length of an empty list would not even enter the loop.

source
Sort:hotnewtop