On Thursday, 2 July 2020 at 07:51:29 UTC, Ali Çehreli wrote:

Both asserts pass: S.init is 800M and is embedded into the compiled program.


Not an answer to your problem but what on earth are those extra 800MB? The array size is 8MB so if the program would just copy the data it would just take 8MB. Does the binary have this size, even with the debugging info stripped?

Also, this an obvious optimization that can be implemented, that the program do an initialization loop instead of putting it in the data segment when the array size is above a certain size and they are supposed to have the same value.

Reply via email to