So I have this dvui app that now compile instantaneously in incremental mode on zig master. But it is 260 Mo-ish and install -C .zig-cache/... takes 1.3 seconds on my laptop.
And yes, it feels very wrong
But if I try to run the install command without the -C flag, it takes only 0.2 [s] (same with cp)
So Iām gonna guess that the comparison of files introduced with -C, or the reading of destination, or likely both is responsible for the extra duration.
Is anybody familiar with that stuff from zigās perspective ?
PS : I can obviously tweak the build script to not copy the file but this seems a bit hackishā¦
Ah, but wait. I had the feeling of this being new. I just manage to test on 0.17.0-dev.864+3deb86baf and the exact same source code doesnāt show this behavior.
i.e. install -C .zig-cache/.... is very fast.
So something changed in latest zig but I donāt get how this could influence the execution speed of install command ā¦
So, I couldnāt find any issue on the official bug tracker that seems related (but there is a lot related to incremental, Iāll refrain myself to increase the noise there for a little bit more time)
Oh, apologies for not noticing this thread earlier! Thanks for reporting this on the issue tracker. I commented on that issue, but will also note here: this should be fixed on the latest Zig compiler build on https://ziglang.org/download, so itād be great if you could give that a try at some point!
No worries. And you kind of did noticed since you fixed the issue
So, yes, happy to confirm that building with 0.17.0-dev.1413+addc3c3b8 does revert to ānormal sizedā binary. Which puts me back on tracks for instant recompile. Yay !
Going to close the codeberg issue.
Thanks for taking the time to answer.