git.iko.soy/typeable/attoparsec
on master help sign in
Fix benchmark bit rot
commit0902b106bc54487dd8f16ae04783032717271f53 authorBryan O'Sullivan <bos@serpentine.com> dateMon 1 Nov 2010, 22:32 (16 years ago) parent1c25e3a
1 file changed+1−1
benchmarks/Tiny.hs+1−1
benchmarks/Tiny.hs+1−1
@@ -14,7 +14,7 @@ attoparsec = do
1414 A.Done _ xs -> print (length xs)
1515 what -> print what
1616 where
17− slow = A.many (A.many1 A.letter <|> A.many1 A.digit)
17+ slow = A.many (A.many1 A.letter_ascii <|> A.many1 A.digit)
1818 fast = A.many (A.takeWhile1 isLetter <|> A.takeWhile1 isDigit)
1919 isDigit c = c >= '0' && c <= '9'
2020 isLetter c = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')