git-annex/Backend
Joey Hess 9eb10caa27
Some optimisations to string splitting code.
Turns out that Data.List.Utils.split is slow and makes a lot of
allocations. Here's a much simpler single character splitter that behaves
the same (even in wacky corner cases) while running in half the time and
75% the allocations.

As well as being an optimisation, this helps move toward eliminating use of
missingh.

(Data.List.Split.splitOn is nearly as slow as Data.List.Utils.split and
allocates even more.)

I have not benchmarked the effect on git-annex, but would not be surprised
to see some parsing of eg, large streams from git commands run twice as
fast, and possibly in less memory.

This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
2017-01-31 19:06:22 -04:00
..
Hash.hs Some optimisations to string splitting code. 2017-01-31 19:06:22 -04:00
URL.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Utilities.hs Always use filesystem encoding for all file and handle reads and writes. 2016-12-24 14:46:31 -04:00
WORM.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00