DMD producing huge binaries
Georgi D via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 20 01:16:06 PDT 2016
On Thursday, 19 May 2016 at 16:41:59 UTC, Andrei Alexandrescu
wrote:
> On 05/19/2016 11:56 AM, Georgi D wrote:
>> Making a local copy of chain and moving the structure outside
>> of the
>> method solved the problem and reduced the code size.
>>
>> The stripped size even reduced from the version that did not
>> experience
>> the huge increase. Stripped: 7.4Mb -> 5.5MB
>
> Thanks very much for helping with these measurements! -- Andrei
Just some more numbers:
On the version with the local chain which is 5.5MB
# strings test.local_choose|wc -l
4170
# strings test.local_choose|wc -c
5194012
Which mean that of the 5.5MB total binary size 4.95MB are
strings.
Inspecting the content of the strings over 98% are symbol names.
Is there a way to not have all the symbol names as strings even
after the binary was stripped?
I think that some compression for the symbol names is a good idea.
I agree though that a O(n) or better for the voldemort types is
also needed.
More information about the Digitalmars-d
mailing list