This gives a nice good performance improvement not only on iterating an EnumMap and reduces complexity. It also makes the iterator immutable due to changes happening to a map on iterating.
But the following BC breaks will happen:
Generator::rewind() throws an exception as it's not supported after starting.
the iterator is no longer seekable (it was seekable before via SeekableIterator)
implements IteratorAggregate (instead of SeekableIterator)
(similar to #110)
This gives a nice good performance improvement not only on iterating an
EnumMap
and reduces complexity. It also makes the iterator immutable due to changes happening to a map on iterating.But the following BC breaks will happen:
SeekableIterator
)IteratorAggregate
(instead ofSeekableIterator
)Bench:
@prolic ping