[Haskell-cafe] Compilation of large data
Sylvain Henry
sylvain at haskus.fr
Fri Jan 29 11:50:51 UTC 2021
Hi Dušan,
Could you open a GHC ticket with a reproducing example?
It looks similar to https://gitlab.haskell.org/ghc/ghc/-/issues/16577 so
you may have more chance with `-O0`.
Thanks,
Sylvain
On 29/01/2021 10:57, Dušan Kolář wrote:
>
> Dear Café,
>
>
> How can I compile large data in the source code? The data structure
> contains a few numerical and String constants and a long list of
> structures (containing two short lists of Strings).
>
>
> If I use ghci, it's fine, no problem (until some size). When I want to
> compile then I run out of memory (32GB, plus 32GB swap) on arch linux.
> Yes, machine with 256GB solved temporarily the problem, but only
> temporarily.
>
>
> The data is generated (about 10.000 elements for the list and more).
> Should it be read from the file during the runtime? Should the
> structure be somehow decoupled (to small lists, each of them in a
> separate file)? Or there is no way, how to make it work... :-(
>
>
> If I use different input, a bit smaller, which I can compile, the
> resulting binary is rather small, less than 7MB.
>
>
> Regards
>
>
> Dušan
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20210129/00c05a47/attachment.html>
More information about the Haskell-Cafe
mailing list