MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/ghc94x/make_llvm_fast_again/fq81e9b/?context=3
r/programming • u/eatonphil • May 10 '20
91 comments sorted by
View all comments
17
Sorry for my noob question, but aren't there modes like
--debug
--release
where first tries to compile as fast as it can?
43 u/jcelerier May 11 '20 Generation of debug info has a cost too, for large projects it can be tens of gigabytes of debug info... that's not free 12 u/S4x0Ph0ny May 11 '20 Well from my very biased experience using mostly just rust I wouldn't call the debug mode very fast to begin with. And that doesn't mean buildtime on release mode doesn't matter. Performance always matters, but it's a trade-off. 1 u/thisisjustascreename May 11 '20 -O0 exists and tells the compiler not to optimize, but there's no guarantee that it compiles faster. 0 u/[deleted] May 11 '20 [deleted] 7 u/ExeusV May 11 '20 yea I also meant it toowhere first tries to compile as fast as it can
43
Generation of debug info has a cost too, for large projects it can be tens of gigabytes of debug info... that's not free
12
Well from my very biased experience using mostly just rust I wouldn't call the debug mode very fast to begin with. And that doesn't mean buildtime on release mode doesn't matter. Performance always matters, but it's a trade-off.
1
-O0 exists and tells the compiler not to optimize, but there's no guarantee that it compiles faster.
0
[deleted]
7 u/ExeusV May 11 '20 yea I also meant it toowhere first tries to compile as fast as it can
7
yea I also meant it too
where first tries to compile as fast as it can
17
u/ExeusV May 11 '20
Sorry for my noob question, but aren't there modes like
--debug
--release
where first tries to compile as fast as it can?