-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is preset 4 deprecated or incorrect? #221
Comments
Maybe for backwards compatibility for existing users (especially scripting & such)? |
Maybe, but given the planned major release, it might be worth finally removing it. And, even before that, the docs likely weren't updated by accident. |
Both of these assumptions are correct. It may make sense to remove it, but my concern is for CLI users who are more likely to not expect a config option to be removed. For this reason, I suggest if we remove level 4 and squash the levels to 0-5, the CLI should allow level 6 and set it to the same as level 5. (It might even make sense to allow any preset level as input, and clamp to a max of level 5? This is what GCC does if you pass e.g. (And yes, missing the documentation was an oversight.) |
For my personal scripting, I'd actually prefer For folks involved in more heavy-duty applications, I can't imagine they'd have time/inclination to follow every possible breaking change here, especially as they'd be wrangling any № of packages' updates. |
FWIW I think if backward compatibility is a concern, then just adding a warning to
Something like |
Btw, it seems that this is already how it works: Lines 197 to 207 in 0a4bde1
|
Ah, nvm, that's how it works at API level but not in CLI due to validation. |
I think this can be closed since #224 is merged? |
#224 adds warning, but if we are still to remove it in a major update, then it's useful to keep this open for tracking. |
Level 4 was reinstated in #457, so perhaps this could be closed now. |
Nice, thanks! |
Currently
--help
says:However, actual code for preset 4 is equivalent to preset 3 (no alpha optimisation):
I suppose this is the outcome of a decision not to perform alpha optimisations by default, made in #187.
Which is fine, but makes state of this preset fairly confusing. Should it be removed at this point?
Also, docs for higher opt levels should probably be updated as well to exclude
-a
?The text was updated successfully, but these errors were encountered: