Collection Performance: High-Performance Emptiness Checks for Concurrent & Immutable Collections

Count vs IsEmpty can be the difference between fast code and a performance disaster. For some immutable and concurrent collections, the wrong choice is tens of thousands of times slower.