git-annex/Remote/Helper
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
..
Chunked incremental checksum on download from ssh or p2p 2021-02-09 17:03:27 -04:00
AWS.hs include credPairRemoteFields in RemoteConfigParsers 2020-01-15 10:57:45 -04:00
Chunked.hs add missing whitespace 2021-04-27 15:23:56 -04:00
Encryptable.hs Avoid more than 1 gpg password prompt at the same time 2021-04-27 16:36:44 -04:00
ExportImport.hs move verifyKeyContent to Annex.Verify 2021-07-27 14:07:23 -04:00
Git.hs convert TopFilePath to use RawFilePath 2019-12-09 15:07:21 -04:00
Hooks.hs propagate signals to the transferrer process group 2020-12-11 15:32:00 -04:00
Http.hs convert getFileSize to RawFilePath 2020-11-05 11:32:57 -04:00
Messages.hs remove "checking remotename" message 2021-04-27 13:05:27 -04:00
P2P.hs move verifyKeyContent to Annex.Verify 2021-07-27 14:07:23 -04:00
ReadOnly.hs convert renameExport to throw exception 2020-05-15 15:08:09 -04:00
Special.hs simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
Ssh.hs remove "checking remotename" message 2021-04-27 13:05:27 -04:00
ThirdPartyPopulated.hs borg: Support importing files that are hard linked in the borg backup 2021-03-26 13:29:34 -04:00