git-annex/Upgrade
Joey Hess fa62c98910
simplify and speed up Utility.FileSystemEncoding
This eliminates the distinction between decodeBS and decodeBS', encodeBS
and encodeBS', etc. The old implementation truncated at NUL, and the
primed versions had to do extra work to avoid that problem. The new
implementation does not truncate at NUL, and is also a lot faster.
(Benchmarked at 2x faster for decodeBS and 3x for encodeBS; more for the
primed versions.)

Note that filepath-bytestring 1.4.2.1.8 contains the same optimisation,
and upgrading to it will speed up to/fromRawFilePath.

AFAIK, nothing relied on the old behavior of truncating at NUL. Some
code used the faster versions in places where I was sure there would not
be a NUL. So this change is unlikely to break anything.

Also, moved s2w8 and w82s out of the module, as they do not involve
filesystem encoding really.

Sponsored-by: Shae Erisson on Patreon
2021-08-11 12:13:31 -04:00
..
V5 simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
V0.hs annex.adjustedbranchrefresh 2020-11-16 14:27:28 -04:00
V1.hs Git.Queue: allow providing git common options like -c 2021-01-04 12:51:55 -04:00
V2.hs simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
V3.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
V4.hs remove most remnants of direct mode 2019-08-26 16:27:48 -04:00
V5.hs remove second pass in scanAnnexedFiles 2021-07-30 17:46:11 -04:00
V6.hs
V7.hs stop using addAssociatedFileFast 2021-06-08 09:23:28 -04:00