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

196

16714 readers
3588 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

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

Go with -Os to optimise for codesize

[โ€“] [email protected] 2 points 10 months ago* (last edited 10 months 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.