mirror of
https://github.com/mrkkrp/megaparsec.git
synced 2024-11-30 18:33:08 +03:00
df3b3016d5
Evaluation of ‘npos’ is not necessary when we are going to report an error. Similarly, evaluation of current position is not necessary when we just need to get incremented position. This seemingly minor change has profound impact on performance because call to ‘token’ function is at the base of significant part of parsing process. |
||
---|---|---|
.. | ||
ByteString | ||
Text | ||
ByteString.hs | ||
Char.hs | ||
Combinator.hs | ||
Error.hs | ||
Expr.hs | ||
Lexer.hs | ||
Perm.hs | ||
Pos.hs | ||
Prim.hs | ||
String.hs | ||
Text.hs |