Isolates enumerator performance bottleneck.
Please merge into 6.0.
@rfindler, edit as you see fit for the release.