git.iko.soy/typeable/attoparsec
on master help sign in
Fix up the INLINE directives to get 10% better performance
commitf45801047f48c28abb2f77379ddde3fe5565527b authorBryan O'Sullivan <bos@serpentine.com> dateTue 16 Feb 2010, 20:51 (17 years ago) parentc1c0220
1 file changed+1−2
Data/Attoparsec/Internal.hs+1−2
Data/Attoparsec/Internal.hs+1−2
@@ -278,14 +278,13 @@ takeSplit split = go
278278 if B.null t
279279 then (h+++) `fmapP` (go <|> return B.empty)
280280 else return h
281+{-# INLINE takeSplit #-}
281282
282283takeTill :: (Word8 -> Bool) -> Parser B.ByteString
283284takeTill = takeSplit . B8.break
284−{-# INLINE takeTill #-}
285285
286286takeWhile :: (Word8 -> Bool) -> Parser B.ByteString
287287takeWhile = takeSplit . B8.span
288−{-# INLINE takeWhile #-}
289288
290289takeWhile1 :: (Word8 -> Bool) -> Parser B.ByteString
291290takeWhile1 p = do