this post was submitted on 18 Feb 2024
697 points (98.7% liked)

196

17009 readers
864 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

If you have any questions, feel free to contact us on our matrix channel.

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 5 points 1 year ago (1 children)

Go with -Os to optimise for codesize

[โ€“] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Often faster anyways as the CPU is eating through instructions faster than the RAM can keep up with. May or may not require compiling as x86-64-v2, depending on code. In general, never trust performance you didn't benchmark.