Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eirki
· 5y ago · 0 comments
It is also marginally faster, I think.
Comments
[–]
dagw
5y ago
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