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

<- View Parent
riodoro1@lemmy.world ⁨3⁩ ⁨days⁩ ago

So… it has to iterate over the whole empty list is what you’re saying? like once for every of the zero items in the lost?

source
Sort:hotnewtop