<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Dušan,</p>
<p>Could you open a GHC ticket with a reproducing example?</p>
<p>It looks similar to
<a class="moz-txt-link-freetext" href="https://gitlab.haskell.org/ghc/ghc/-/issues/16577">https://gitlab.haskell.org/ghc/ghc/-/issues/16577</a> so you may have
more chance with `-O0`.<br>
</p>
<p>Thanks,<br>
Sylvain<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 29/01/2021 10:57, Dušan Kolář wrote:<br>
</div>
<blockquote type="cite" cite="mid:3767409.SCssA4BfgB@nbkolard">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Dear
Café,</p>
<br>
<p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">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).</p>
<br>
<p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">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.</p>
<br>
<p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">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... :-(</p>
<br>
<p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">If
I use different input, a bit smaller, which I can compile, the
resulting binary is rather small, less than 7MB. </p>
<br>
<p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Regards</p>
<br>
<p
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Dušan</p>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a>
Only members subscribed via the mailman list are allowed to post.</pre>
</blockquote>
</body>
</html>