DfaMinimizer remove ElementAt
Optimize the nested Transitions
class.
ElementAt is O(n) which is a huge performance penalty.
Replace it with classic indexing.
This requires replacing IEnumerable<T>
with either ICollection<T>
or List<T>
.
Optimize the nested Transitions
class.
ElementAt is O(n) which is a huge performance penalty.
Replace it with classic indexing.
This requires replacing IEnumerable<T>
with either ICollection<T>
or List<T>
.