Increase default optimization level from -O1 to something more optimized #169
Closed
zamazan4ik
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Thank you for the suggestions! I had -O1 early on because I was getting weird behavior with -O2. This was very early in the project, and it's possible it can be elevated now. I haven't considered LTO maybe that's a possibility. |
Beta Was this translation helpful? Give feedback.
2 replies
-
This is in, on main branch. File size went from ~850KB to ~600KB. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I found that in the current Makefile default optimization level is
-O1
. I see that before 2538c3a it was-O2
but suddenly was changed to-g
and then-O1
.Could you please elaborate on the reason for decreasing the default opt level? Probably it was just a mistake and we can revert to
-O2
(or even-O3
) once again.Thanks!
P.S. By the way, did you consider enabling Link-Time Optimization (LTO) for the project with
-flto
flag? It can help with the binary size reduction and allow the compiler perform more optimizations "automatically".Beta Was this translation helpful? Give feedback.
All reactions