Ever since text-2.0 counting the numer of bytes in a Text value is O(1). This allows us to construct a LogStr very efficiently without going through a ByteString (which uses pinned memory) first. Hurray!
Unfortunately this patch downgrades Safe Haskell Safe to Trustworthy for the LogStr module. I am sure how much of problem that is though.
Ever since text-2.0 counting the numer of bytes in a Text value is O(1). This allows us to construct a LogStr very efficiently without going through a ByteString (which uses pinned memory) first. Hurray!
Unfortunately this patch downgrades Safe Haskell
Safe
toTrustworthy
for the LogStr module. I am sure how much of problem that is though.