Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Retro: use -Os instead of -O2 #113

Open
Artoria2e5 opened this issue Oct 3, 2020 · 4 comments
Open

Retro: use -Os instead of -O2 #113

Artoria2e5 opened this issue Oct 3, 2020 · 4 comments

Comments

@Artoria2e5
Copy link
Contributor

Artoria2e5 commented Oct 3, 2020

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.

@MingcongBai
Copy link
Contributor

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

@Icenowy
Copy link
Contributor

Icenowy commented Oct 3, 2020

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

@MingcongBai
Copy link
Contributor

@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.

@MingcongBai
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants