git-annex/Remote
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
..
Directory finish fixing removeLink on windows 2020-11-24 13:20:44 -04:00
External Added GETGITREMOTENAME to extenal special remote protocol 2021-01-26 12:42:47 -04:00
Helper simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
List auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
Rsync add newtypes for QuickCheck to avoid LANG=C issues 2020-11-09 20:21:18 -04:00
WebDAV fix exporting when the file is in the top of the repo 2021-03-16 14:17:29 -04:00
Adb.hs simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
BitTorrent.hs Tahoe: Avoid verifying hash after download, since tahoe does sufficient verification itself 2021-02-09 13:42:16 -04:00
Borg.hs simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
Bup.hs remove "checking remotename" message 2021-04-27 13:05:27 -04:00
Ddar.hs move untrust forcing from Logs.Trust into Remote 2020-12-28 15:22:10 -04:00
Directory.hs fix reversion in recent CoW changes 2021-04-20 11:41:43 -04:00
External.hs remove "checking remotename" message 2021-04-27 13:05:27 -04:00
GCrypt.hs simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
Git.hs propagate debugging into remote's Annex monad 2021-07-26 11:40:51 -04:00
GitLFS.hs simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
Glacier.hs remove "checking remotename" message 2021-04-27 13:05:27 -04:00
Hook.hs simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
HttpAlso.hs remove "checking remotename" message 2021-04-27 13:05:27 -04:00
List.hs start borg special remote 2020-12-18 16:03:51 -04:00
P2P.hs incremental checksum on download from ssh or p2p 2021-02-09 17:03:27 -04:00
Rsync.hs simplify 2021-08-09 15:17:48 -04:00
S3.hs remove "checking remotename" message 2021-04-27 13:05:27 -04:00
Tahoe.hs Tahoe: Avoid verifying hash after download, since tahoe does sufficient verification itself 2021-02-09 13:42:16 -04:00
Web.hs remove "checking remotename" message 2021-04-27 13:05:27 -04:00
WebDAV.hs remove "checking remotename" message 2021-04-27 13:05:27 -04:00