Thread overview | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
September 17, 2016 LDC: Speed up incremental builds with object file caching | ||||
---|---|---|---|---|
| ||||
I just finished another post about LDC: https://johanengelen.github.io/ldc/2016/09/17/LDC-object-file-caching.html Thanks in advance for letting me know about any bugs you find, in the text or in the code :) -Johan |
September 17, 2016 Re: LDC: Speed up incremental builds with object file caching | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johan Engelen | Dne 17.9.2016 v 20:46 Johan Engelen via Digitalmars-d-announce napsal(a):
> I just finished another post about LDC:
> https://johanengelen.github.io/ldc/2016/09/17/LDC-object-file-caching.html
>
>
> Thanks in advance for letting me know about any bugs you find, in the text or in the code :)
>
> -Johan
>
Nice article, however font on this site is too small to read, I have to zoom in :(
|
September 18, 2016 Re: LDC: Speed up incremental builds with object file caching | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johan Engelen | On Saturday, 17 September 2016 at 18:46:26 UTC, Johan Engelen wrote: > I just finished another post about LDC: > https://johanengelen.github.io/ldc/2016/09/17/LDC-object-file-caching.html > > Thanks in advance for letting me know about any bugs you find, in the text or in the code :) > > -Johan Reddit: https://www.reddit.com/r/programming/comments/539wpv/ldc_speed_up_incremental_builds_of_d_programs/ |
September 18, 2016 Re: LDC: Speed up incremental builds with object file caching | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Kozak | On Saturday, 17 September 2016 at 19:17:44 UTC, Daniel Kozak wrote:
>
> Nice article, however font on this site is too small to read, I have to zoom in :(
Do more people have this problem? For me, the font size is similar to, say, Github.
|
September 18, 2016 Re: LDC: Speed up incremental builds with object file caching | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johan Engelen | On Saturday, 17 September 2016 at 18:46:26 UTC, Johan Engelen wrote:
> I just finished another post about LDC:
> https://johanengelen.github.io/ldc/2016/09/17/LDC-object-file-caching.html
>
> Thanks in advance for letting me know about any bugs you find, in the text or in the code :)
Interesting approach to speed up compilation without running into dmd's problems of template instance emission when compiling multiple modules to multiple objects.
Many people use noatime or relatime when mounting their filesystems, so access time isn't the best eviction strategy unless you touch the files.
|
September 18, 2016 Re: LDC: Speed up incremental builds with object file caching | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | On Sunday, 18 September 2016 at 08:14:47 UTC, Martin Nowak wrote: > > Interesting approach to speed up compilation without running into dmd's problems of template instance emission when compiling multiple modules to multiple objects. I think LDC has the same problems (template instances are emitted in the first module not the one that needed the instantiation?). Knowing this, you may be able to set up a case where things break, but I think it would have to involve recompilation with a different set of sources than the first compile. E.g. `ldc2 -c a.d b.d c.d` first, then `ldc2 -c b.d c.d`, and then trying to link. Which probably doesn't work well without caching either... We should deprecate non-singleobj compiles. > Many people use noatime or relatime when mounting their filesystems, so access time isn't the best eviction strategy unless you touch the files. I forgot to mention this in the article, thanks! I read that a file's last access timestamp may also not be updated on Windows (default Windows 7 setting), so I already had LDC `touch` the cached file upon a cache hit. Added it as a footnote in the article. |
September 18, 2016 Re: LDC: Speed up incremental builds with object file caching | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johan Engelen | Dne 18.9.2016 v 10:07 Johan Engelen via Digitalmars-d-announce napsal(a): > On Saturday, 17 September 2016 at 19:17:44 UTC, Daniel Kozak wrote: >> >> Nice article, however font on this site is too small to read, I have to zoom in :( > > Do more people have this problem? For me, the font size is similar to, say, Github. Maybe it is a font type (it is light) this is how it looks on my display: http://imgur.com/a/r6pX8 |
September 18, 2016 Re: LDC: Speed up incremental builds with object file caching | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Kozak | On Sunday, 18 September 2016 at 10:21:41 UTC, Daniel Kozak wrote:
> Dne 18.9.2016 v 10:07 Johan Engelen via Digitalmars-d-announce napsal(a):
>
>> On Saturday, 17 September 2016 at 19:17:44 UTC, Daniel Kozak wrote:
>>>
>>> Nice article, however font on this site is too small to read, I have to zoom in :(
>>
>> Do more people have this problem? For me, the font size is similar to, say, Github.
>
> Maybe it is a font type (it is light) this is how it looks on my display:
> http://imgur.com/a/r6pX8
But on my android phone it is OK. So maybe I should bought some 2k or 4k monitor ;)
|
September 18, 2016 Re: LDC: Speed up incremental builds with object file caching | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Kozak | On Sunday, 18 September 2016 at 12:15:12 UTC, Daniel Kozak wrote:
>
> But on my android phone it is OK. So maybe I should bought some 2k or 4k monitor ;)
Definitely one of the best upgrades I ever did (4k monitor). Warning: there's no way back.
|
September 18, 2016 Re: LDC: Speed up incremental builds with object file caching | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johan Engelen | On 2016-09-18 11:10, Johan Engelen wrote: > I think LDC has the same problems (template instances are emitted in the > first module not the one that needed the instantiation?). I thought that LDC did not have that problem, or there was a flag change the behavior. -- /Jacob Carlborg |
Copyright © 1999-2021 by the D Language Foundation