4 ms·
Interesting, would be nice for rustc to have a special flag that enable "maximum performance" at any compile time/ram price
by The_rationalist 6y ago
Interesting, would be nice for rustc to have a special flag that enable "maximum performance" at any compile time/ram price
- the8472 6y agoAt any price? You could throw something like souper at the problem[0]. It makes compilation about 20 times slower in some benchmarks in their paper. This is on the IR level, iirc similar optimizers exist for assembly generation, so you can throw that in as another pass. [0] https://github.com/google/souper https://github.com/google/souper
- MaxBarraclough 6y ago> At any price? Seems to me that raising the ceiling on optimisation is good to have, even if the computational cost is very high. If it works reliably, it wouldn't be necessary to do optimised release builds very often, and they could be offloaded onto a heavyweight build server, perhaps on the cloud.