5 ms·
How is this not a compiler bug? What would justify a nil check being many times more expensive then a bool check?
by SPascareli13 2y ago
How is this not a compiler bug? What would justify a nil check being many times more expensive then a bool check?
- tedunangst 2y agoThe nil check is not more expensive.
- SPascareli13 2y agoDid you read the article? It clearly show that it is. I just don't understand why.
- tedunangst 2y agoCalling errors.Is is slower than not calling errors.Is.