AOSC-Archive/autobuild3

Retro: use -Os instead of -O2

Artoria2e5 opened this issue · 4 comments

my laptop screen is dead and i cant be arsed to type on a phone or i would be sending a PR already

anyway apple does this extensively with clang, and I don't expect the performance to be terrible since we could be saving instruction cache

hell we could use -Oz on clang. who cares about auto vectorization on a pentium.

I would, but honestly, on Pentium MMX, Pentium, and even 486 - I don't look forward to this prospect...

@MingcongBai as I know, when memory is the bottleneck, the memory saved by -Os is precious and will really make performance better.

@MingcongBai as I know, when memory is the bottleneck, the memory saved by -Os is precious and will really make performance better.

Might be worth a try, this is usually the issue with our target devices. But honestly, mostly with i486.

However, I should note that with our i486's 508MiB installed size, over 200MiB goes to /usr/share.