static constants -- ideas?
jay at satirist.org
Sun Feb 24 22:37:46 EST 2008
Don Stewart dons at galois.com:
>> I also have constants that are too large to compile. I am resigned to
>> loading them from data files--other solutions seem even worse.
>> Data.Binary eases the irritation somewhat.
>Did you try bytestring literals (and maybe parsing them in-memory with
That didn't occur to me, since neither of my large constants includes
strings.... I think you're suggesting that each constant could appear in
the source as a long bytestring and be deserialized into the data
structure. If that works, it should improve the startup time, but it's
still not as nice as simply compiling it straight up.
I'll try it.
More information about the Glasgow-haskell-users