[Haskell-cafe] Too much inlining on text package

Felipe Almeida Lessa felipe.lessa at gmail.com
Sun Apr 8 17:29:47 CEST 2012


On Sun, Apr 8, 2012 at 2:47 AM, Bryan O'Sullivan <bos at serpentine.com> wrote:
> I fixed the too-much-inlining bug tonight. As a bonus, Text literals are now
> decoded straight from GHC's packed encoding, without an intermediate step
> through String.
>
> Generated code now looks like this at -O and above:
>
> $ ghc -O -ddump-simpl -c CS.hs
> CS.foo :: Data.Text.Internal.Text
> [GblId, ...]
> CS.foo = Data.Text.unpackCString# "x\NULy"

Very nice!  =)

Cheers,

-- 
Felipe.



More information about the Haskell-Cafe mailing list