decode_c converted to ByteString
authorJoey Hess <joeyh@joeyh.name>
Fri, 7 Apr 2023 18:44:19 +0000 (14:44 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 7 Apr 2023 18:44:19 +0000 (14:44 -0400)
commit371d4f8183caf3a6bbf613afe363619e1d3cad9e
treedf2976f75f0e92227136833682b0d89cf9ec6d24
parentf0b1034f8f47de2de625efb8704b16204be2731c
decode_c converted to ByteString

This speeds up a few things, notably CmdLine.Seek using Git.Filename
which uses decode_c and this avoids a conversion to String and back,
and probably the ByteString implementation of decode_c is also faster
for simple cases at least than the string version.

encode_c cannot be converted to ByteString (or if it did, it would have
to convert right back to String in order to handle unicode).

Sponsored-by: Brock Spratlen on Patreon
Git/Filename.hs
Types/Transferrer.hs
Utility/Format.hs
Utility/Gpg.hs