3 ms·
> Like why does it take tens of seconds to recompile when I am just changing a single number in a file? Impossible to tell without knowing more. Steps to repro
by the8472 5y ago
> Like why does it take tens of seconds to recompile when I am just changing a single number in a file?
Impossible to tell without knowing more. Steps to reproduce the issue would help. Just consider how TFA went through many different things to investigate.
> Does it really need to waste so much of my time to change a single byte in the output binary?
Does it actually only change a single byte in the binary? Changing a single value can cascade much further than that.
- charcircuit 5y ago>Impossible to tell without knowing more. It was a rhetorical question based off my experience with rust. I was running into this issue with building a site using warp along with some other dependencies. Those projects have been deleted off my system. I am not interested in chasing down performance issues with the compiler. Remaking the site using C++ did not have me run into slow compile times. I just want to be able to quickly iterate on stuff I work on. >Does it actually only change a single byte in the binary? It would be possible. I could do it myself using binary ninja / ghidra. I just want to be able to iterate quickly and try out multiple different values. I understand it's not that simple of a problem, but I just want it to work else I'll gravitate to making projects in some other language.
- bogeholm 5y ago> I just want it to work else I'll gravitate to making projects in some other language Sounds like Go or C++, or maybe evne Zig, are good choices for you then
- the_gipsy 5y agoMhh, perhaps there is a place for detecting something like an "incremental change that ONLY changed static values". It is indeed very frustrating trying to play with these kind of "settings" values.
- pjmlp 5y agoI feel the same pain, specially since when using C++ I tend to just use binary libraries for all the code I don't own, so even cold builds are quite fast even when talking about C++. Just by having cargo support binary libraries would be an improvement for cold builds, but I understand it isn't a priority. The Rust/WinRT folks have a big binary crate that they use to workaround Rust's compilation times, https://github.com/microsoft/windows-rs/tree/master/.windows https://github.com/microsoft/windows-rs/tree/master/.windows