HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by eirki | Hacker News Reader
Parent
Full thread
eirki
·
It is also marginally faster, I think.
View on HN
dagw
·
Just did a quick check, and looping over an array of 1 million Nones and checking each element
el==None
was roughly 25% slower than
el is None
edit: Doing
None==el
was roughly 15% slower
Reply on news.ycombinator.com