Compile-time memory footprint of std.algorithm
Peter Alexander via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 23 13:04:08 PDT 2014
On Wednesday, 23 April 2014 at 19:54:29 UTC, Nordlöw wrote:
>> tl;dr: allocation is a critical speed issue with dmd. Using
>> the bump-pointer method is very fast, and it matters.
>
> What about packing DMD structure members such as integers and
> enums more efficiently?
>
> We could start with making enums __attribute__((packed)). Is
> there any free static/dynamic tool to check for unexercized
> bits?
>
> How does Clang do to save so much space compared to GCC? Do
> they pack gentlier or use deallocation?
>
> A much higher-hanging fruit is to switch from using pointers to
> 32-bit handles on 64-bit CPUs to reference tokens,
> sub-expressions etc. But I guess that is a big undertaking
> getting type-safe and may give performance hits.
Maybe we should investigate where the memory is going first
before planning our attack :-)
More information about the Digitalmars-d
mailing list