Source

attoparsec / Data / Attoparsec / ByteString / Internal.hs

Author Commit Message Labels Comments Date
tibbe
Document optimizations in ensure
tibbe
Reduce code bloat due to inlining ensure Move the uncommonly used code that fetches more data into its own function that doesn't get inlined.
tibbe
Several performance improvements * Ensure the bounds check gets inlined by making ensure non-recursive so it can be inlined. * Avoid creating an extra closure in the common case by inlining the success continuation in ensure. * Optimize lengths check on Text values by using an O(1) conservative check before the exact O(n) check. * Make sure functions that take a high-order predicate argument get inlined to redu…
solirc
Minor documentation fix
solirc
Fix Haddock markup
Bryan O'Sullivan
Refactor peekWord8 and peekChar. We now check whether there's input before we care whether we've hit EOF.
tibbe
peekChar/peekWord8: Return Nothing at end-of-input Fixes #20.
tibbe
Add peekWord8/peekChar
Bryan O'Sullivan
Do not export ensure.
Michael Snoyman
Allow for partial type application
Bryan O'Sullivan
Merge
Bryan O'Sullivan
Add support for the text package