Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid allocations in ascii_lc_isequal
Fixes #724. Maybe in a perfect world, the compiler would be able to "see through" the calls to `Iterators.Stateful` and `zip` iterating through them to avoid allocating `Stateful` at all, but this also just feels like a case of a very low-level function trying to use high-level constructs. The proposed code here is an order of magnitude faster (~10x in the few cases I tested), avoids all allocations, and IMO, is simpler (I'm guessing most users don't immediately understand what `Iterators.Stateful` is for).
- Loading branch information