Archr
@Archr@lemmy.world
This is a remote user, information on this page may be incomplete. View at Source ↗
- Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len() 1 week ago:
I haven’t read the article. But I’d assume this is for the same reason that
not not string
is faster thanbool(string)
. Which is to say that it has to do with having to look up a global function rather than a known keyword.