git-annex/Assistant/WebApp
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
..
Configurators simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
Common.hs
Configurators.hs webapp: full wormhole pairing UI (untested) 2016-12-27 16:41:35 -04:00
Control.hs finished this stage of the RawFilePath conversion 2020-11-04 14:20:37 -04:00
DashBoard.hs add searchPathContents 2021-02-02 19:06:15 -04:00
Documentation.hs split BuildInfo and BuildFlags 2018-01-02 13:47:51 -04:00
Form.hs remove many old version ifdefs 2019-07-05 15:09:37 -04:00
Gpg.hs add searchPathContents 2021-02-02 19:06:15 -04:00
MakeRemote.hs change Remote.repo to Remote.getRepo 2018-06-04 15:30:26 -04:00
Notifications.hs Merge branch 'master' into no-xmpp 2016-12-24 15:01:55 -04:00
OtherRepos.hs finished this stage of the RawFilePath conversion 2020-11-04 14:20:37 -04:00
Page.hs removed the old Android app 2018-10-13 01:41:11 -04:00
Pairing.hs avoid insertWith' depreaction warning 2018-04-22 13:28:31 -04:00
Repair.hs
RepoId.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
RepoList.hs cache remote.log 2020-09-22 13:52:26 -04:00
routes webapp: remove configurators for obsolste cloud storage services 2019-01-22 11:48:35 -04:00
SideBar.hs
Types.hs remove many old version ifdefs 2019-07-05 15:09:37 -04:00