[Haskell-cafe] Too much inlining on text package
Michael Snoyman
michael at snoyman.com
Sun Apr 8 09:46:45 CEST 2012
On Apr 8, 2012 8:47 AM, "Bryan O'Sullivan" <bos at serpentine.com> wrote:
>
> On Sun, Mar 18, 2012 at 12:02 AM, Michael Snoyman <michael at snoyman.com>
wrote:
>>
>>
>> OK, issue created: https://github.com/bos/text/issues/19
>
>
> 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"
This looks great Bryan, thank you!
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120408/c6e4a8cc/attachment.htm>
More information about the Haskell-Cafe
mailing list