Singleobj builds
Johan Engelen via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Tue Nov 8 01:43:23 PST 2016
On Tuesday, 8 November 2016 at 07:51:35 UTC, Nordlöw wrote:
> On Tuesday, 8 November 2016 at 05:15:56 UTC, Johan Engelen
> wrote:
>> Source-level caching (`ccache`-like), it's almost done.
>
> Sounds great. I presume (transitive) dependency analysis
> happens on file-level, right?
>
> What is the motivation behind having this as well, when LDC
> just got IR-level caching aswell?
It is approx. infinity times faster when the source has not
changed. ;)
IR-level caching skips optimization and machine codegen.
Source-level caching also skips semantic analysis (which can take
a considerable amount of time) and IR codegen+hashing (the
hashing requires several seconds for large files).
See https://github.com/ldc-developers/ldc/pull/1871
I plan to write a small article explaining how it works when it
is merged.
-Johan
More information about the digitalmars-d-ldc
mailing list