Skip Navigation

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

blog.codingconfessions.com

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

Lobste.rs @lemmy.bestiver.se

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

147 comments
  • From that little image, they're happy it takes a tenth of a fucking second to check if a list is empty?

    What kind of dorito chip is that code even running on?

147 comments