LZ4 decompression at CTFE

Stefan Koch via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Apr 28 10:58:50 PDT 2016


On Thursday, 28 April 2016 at 17:29:05 UTC, Dmitry Olshansky 
wrote:
>
> What's the benefit? I mean after CTFE-decompression they are 
> going to add weight to the binary as much as decompressed files.
>
> Compression on the other hand might be helpful to avoid 
> precompressing everything beforehand.

The compiler can load files faster, that are being used by ctfe 
only.
Which would be stripped out by the linker later.
And keep in mind that it also works at runtime.

Memory is scarce at compiletime and this can help reducing the 
memory requirements. When a bit of structure is added on top.



More information about the Digitalmars-d-announce mailing list