git-annex/Logs
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
..
Chunk remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Difference remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
PreferredContent remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Presence remove \r from Arbitrary for log tests 2016-05-27 12:04:49 -04:00
Trust remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Activity.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Chunk.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Config.hs forgot to add this new source file 2017-01-30 17:36:45 -04:00
Difference.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
FsckResults.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Group.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Line.hs Split lines in the git-annex branch on \r as well as \n, to deal with \r\n terminated lines written by some versions of git-annex on Windows. 2016-05-27 11:45:13 -04:00
Location.hs log: Added --all option. 2016-07-17 15:15:08 -04:00
MapLog.hs Split lines in the git-annex branch on \r as well as \n, to deal with \r\n terminated lines written by some versions of git-annex on Windows. 2016-05-27 11:45:13 -04:00
MetaData.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
NumCopies.hs vicfg: Include the numcopies configuation. 2017-01-30 15:27:25 -04:00
PreferredContent.hs Limit annex.largefiles parsing to the subset of preferred content expressions that make sense in its context. 2016-02-03 15:04:42 -04:00
Presence.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Remote.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
RemoteState.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Schedule.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
SingleValue.hs Split lines in the git-annex branch on \r as well as \n, to deal with \r\n terminated lines written by some versions of git-annex on Windows. 2016-05-27 11:45:13 -04:00
TimeStamp.hs Optimised git-annex branch log file timestamp parsing. 10% speedup 2016-09-29 14:04:53 -04:00
Transfer.hs Some optimisations to string splitting code. 2017-01-31 19:06:22 -04:00
Transitions.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00
Trust.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Unused.hs Always use filesystem encoding for all file and handle reads and writes. 2016-12-24 14:46:31 -04:00
UUID.hs Some optimisations to string splitting code. 2017-01-31 19:06:22 -04:00
UUIDBased.hs Split lines in the git-annex branch on \r as well as \n, to deal with \r\n terminated lines written by some versions of git-annex on Windows. 2016-05-27 11:45:13 -04:00
View.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Web.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00