DMD producing huge binaries
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 20 12:45:36 PDT 2016
On 5/20/2016 5:57 AM, ZombineDev wrote:
> Walter's PR slows down the compilation with
> 25-40% according to my tests. I expect that compilation would be faster if the
> whole process is skipped altogether.
The compressor only kicks in if the string is longer than 64 bytes. I set it
pretty low in order to have it kick in often, and hopefully flush out any bugs
in it.
For a production version, the minimum size should be set substantially larger,
based on testing to provide a reasonable balance.
That should speed it up a lot. Also, the algorithm is a bit naively implemented,
I bet it could be speeded up substantially.
Hashing isn't algorithmically cheap, either.
More information about the Digitalmars-d
mailing list