[Haskell-cafe] When does the UNPACK pragma work?

Eugene Kirpichov ekirpichov at gmail.com
Fri Oct 28 12:34:16 CEST 2011

On Fri, Oct 28, 2011 at 2:32 PM, Daniel Fischer <
daniel.is.fischer at googlemail.com> wrote:

> On Friday 28 October 2011, 11:57:54, Eugene Kirpichov wrote:
> > Another question: Can I unpack some fields in a record and not unpack
> > others?
> Yes, no problem with that.
> > Does their order matter then?
> In what way? The order of the fields in the definition of the type will
> determine the order in which the components (pointers/unpacked values)
> appear in the constructor. That may influence performance, but I wouldn't
> expect a significant difference.

Oh, OK. I was just thinking, maybe, you can only unpack a prefix of the
field set...

Eugene Kirpichov
Principal Engineer, Mirantis Inc. http://www.mirantis.com/
Editor, http://fprog.ru/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111028/e195ee99/attachment.htm>

More information about the Haskell-Cafe mailing list