static constants -- ideas?
Don Stewart
dons at galois.com
Sun Feb 24 03:37:03 EST 2008
jason.dusek:
> Don Stewart <dons at galois.com> wrote:
> > You can build large constant bytestrings, fwiw. They turn into
> > an Addr#, and GHC will leave them alone.
>
> Well, for my particular problem -- I guess I could align all
> the elements of the lists, and then build the trie and maps
> from the ByteStrings at startup.
You could pull them out with Data.Binary too, making it a little faster
constructing.
-- Don
More information about the Glasgow-haskell-users
mailing list