[commit: ghc] master: SrcLoc: Eliminate constructors of RealSrcSpan (987426c)

Ben Gamari ben at well-typed.com
Sat Dec 19 11:51:13 UTC 2015


Simon Peyton Jones <simonpj at microsoft.com> writes:

> Does this change yield any benefits?  Eg. if we can now unbox SrcLoc does something go faster?
>
Compiler allocations in the testsuite decrease between 0 and 1% [1].

Moreover, it still seemed like a reasonable clean-up given it is a
net reduction in code length with no loss of clarity.

Cheers,

- Ben


[1] https://perf.haskell.org/ghc/#table-6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20151219/fd7f25fd/attachment.sig>


More information about the ghc-devs mailing list