IsString StringContainingQuotedPath optimisation
authorJoey Hess <joeyh@joeyh.name>
Tue, 11 Apr 2023 19:29:04 +0000 (15:29 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 11 Apr 2023 19:29:04 +0000 (15:29 -0400)
commit4a5f18a8ecfda4220a6963acd21025d783caf071
treec76c13bdd071bd2e8ba76245898dbf27c2a3757a
parentafa5b883dc9a05c11cd729ad16f58208584e9f70
IsString StringContainingQuotedPath optimisation

This causes an encodeBS thunk, and the first evaluation of the string
forces it. From then on, further uses operate on a ByteString. This
avoids converting repeatedly.
Git/Filename.hs