Make shared static this() encoding table compilable
zhad3
no at spam.pls
Wed Mar 16 18:11:00 UTC 2022
On Monday, 14 March 2022 at 10:23:18 UTC, bauss wrote:
> I think it's a memory issue and it's unlikely to be solved.
>
> I saw a similar issue a while ago where it worked with
> everything but DMD.
>
> Someone can correct me but if I remember correctly it's because
> DMD issues instructions for each value (or something like that)
> in the static array and thus runs out of memory before any
> optimization can happen or whatever, but LDC etc. doesn't have
> said issue.
>
> I can't exactly remember how it is, but I think it's something
> along those lines.
>
> I don't think there really is a workaround as of now and
> probably never will be.
Thank you, that's unfortunate if true. I don't know if the
solution provided by Ali just mitigates the problem (in the sense
that less memory is being used) but for now it works on my
machine(tm).
More information about the Digitalmars-d-learn
mailing list