git-annex/Build
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
..
BuildVersion.hs add Build/BuildVersion, for use by autobuilders 2014-06-18 14:29:39 -04:00
BundledPrograms.hs Linux standalone: Include locale files in the bundle, and generate locale definition files for the locales in use when starting runshell. 2016-10-04 16:37:43 -04:00
collect-ghc-options.sh Makefile: Pass LDFLAGS, CFLAGS, and CPPFLAGS through ghc and on to ld, cc, and cpp. 2015-08-19 13:53:57 -04:00
Configure.hs Android: Fix disabling use of cp --reflink=auto, curl, sha224, and sha384. 2016-09-05 14:11:35 -04:00
DesktopFile.hs avoid warnings about not exported System.Directory.isSymbolicLink 2016-04-28 15:18:11 -04:00
DistributionUpdate.hs Always use filesystem encoding for all file and handle reads and writes. 2016-12-24 14:46:31 -04:00
EvilLinker.hs avoid warnings about not exported System.Directory.isSymbolicLink 2016-04-28 15:18:11 -04:00
EvilSplicer.hs fix build 2016-12-28 14:31:43 -04:00
InstallDesktopFile.hs update my email address and homepage url 2015-01-21 12:50:09 -04:00
LinuxMkLibs.hs remove debug print 2016-11-15 21:52:10 -04:00
MakeMans.hs fix man page building 2016-06-02 16:54:58 -04:00
Mans.hs Added git-remote-tor-annex, which allows git pull and push to the tor hidden service. 2016-11-21 17:27:38 -04:00
mdwn2man Don't escape leading dots in code blocks in manpage 2016-08-16 11:51:16 -04:00
NullSoftInstaller.hs avoid warnings about not exported System.Directory.isSymbolicLink 2016-04-28 15:18:11 -04:00
OSXMkLibs.hs Some optimisations to string splitting code. 2017-01-31 19:06:22 -04:00
Standalone.hs avoid warnings about not exported System.Directory.isSymbolicLink 2016-04-28 15:18:11 -04:00
TestConfig.hs avoid warnings about not exported System.Directory.isSymbolicLink 2016-04-28 15:18:11 -04:00
Version.hs Updated cabal file explictly lists source files. 2016-05-24 01:28:07 -04:00