Source

text / Data / Text / Fusion.hs

Author Commit Message Labels Comments Date
Bryan O'Sullivan
Drop some redundant imports.
Bryan O'Sullivan
Simplify the unstream code
Bryan O'Sullivan
unstream: choose a winner - the continuation For a simple benchmark filtering many very small strings, this allocates 7.8% less memory and 2.4% less time than unstream in 0.11.2.1. The difference slowly disappears for larger strings. The "use a specialised pair" approach can't match the reduction in memory use, and for reasons unknown to me, seems to be slower than the code in 0.11.2.1.
Bryan O'Sullivan
unstream: Fine-tune the continuation handling
Bryan O'Sullivan
Another try at improving Text generation.
Bryan O'Sullivan
A small improvement in Text generation efficiency. The specialised Run tuple avoids boxing and indirection for both the MArray and Int parameters in the predecessor code. I think I can do better, though.
Bryan O'Sullivan
Rename unsafeNew to new
Bryan O'Sullivan
Rewrite mapAccumL to be fast
Bryan O'Sullivan
Rename partialCopy to copy
Bryan O'Sullivan
Replace copy with partialCopyM
Bryan O'Sullivan
Remove more duplicated Builder code This time, I also changed the return value from UnsafeChar.unsafeWrite to return the number of Word16 values written, instead of the next offset in the array to use.
Bryan O'Sullivan
Rename unsafeCopy to partialCopyM
Bryan O'Sullivan
Switch argument ordering for copy
Bryan O'Sullivan
Change argument ordering for unsafeCopy
Bryan O'Sullivan
Update copyright
Bryan O'Sullivan
Simplify and speed up lazy unstream
Bryan O'Sullivan
Speed up unstream by splitting the loop
Bryan O'Sullivan
Add an SCC for resizing during a reverse
Bryan O'Sullivan
Make use of assert conditional This turns out to make about a 10% difference to performance, even though the GHC docs claim it shouldn't :-(
Bryan O'Sullivan
Replace a few multiplications with shifts
Bryan O'Sullivan
Tiny performance improvement via strictness
Bryan O'Sullivan
Change Tom's email address
Bryan O'Sullivan
Rename :!: to :*: for consistency with other stream-based packages.
Bryan O'Sullivan
Get rid of most of findIndex, findIndices, elemIndex, and elemIndices.
Bryan O'Sullivan
Expose and fix some subtle bugs.
Bryan O'Sullivan
ZOMG size isn't everything.
Bryan O'Sullivan
Rename count to countChar.
Bryan O'Sullivan
Use unchecked shifts for a speedup.
Bryan O'Sullivan
Update copyrights and maintainers.
Tags
0.2
Bryan O'Sullivan
Implement and test lazy elemIndex, elemIndices, and count
  1. Prev
  2. 1
  3. 2
  4. 3
  5. 4
  6. Next