this post was submitted on 18 Feb 2024
706 points (100.0% liked)

196

16450 readers
1783 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

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

Go with -Os to optimise for codesize

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