Skip to content
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

More precise documentation of optimizer settings and their defaults #15578

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

cameel
Copy link
Member

@cameel cameel commented Nov 20, 2024

When reading these docs I always need a few takes to understand what the defaults actually are and how the settings interact with each other. They're imprecise and confusing. Trying to answer #15576 today it annoyed me enough that I decided to rewrite it, not to have to waste time on decoding them ever again.

Examples:

  • If "details" is given, "enabled" can be omitted. at first sounds as if including details was equivalent to turning on enabled. But it actually means that enabled becomes redundant because it only provides defaults.
  • The inliner is always off if no details are given, - not true, it is on when the optimizer is enabled.

The PR also fixes the docstrings in OptimiserSettings.h which somehow switched places.

@cameel cameel self-assigned this Nov 20, 2024
@cameel cameel changed the title More precise optimizer settings docs More precise documentation of optimizer settings and their defaults Nov 20, 2024
Copy link
Collaborator

@matheusaaguiar matheusaaguiar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think everything is much clearer after this PR.

docs/using-the-compiler.rst Outdated Show resolved Hide resolved
docs/using-the-compiler.rst Outdated Show resolved Hide resolved
@cameel cameel force-pushed the more-precise-optimizer-settings-docs branch 2 times, most recently from b166851 to 0eeefd5 Compare November 21, 2024 11:57
@cameel cameel force-pushed the more-precise-optimizer-settings-docs branch from 0eeefd5 to 01f1672 Compare November 21, 2024 11:59
@cameel cameel force-pushed the more-precise-optimizer-settings-docs branch from 01f1672 to 8a8b543 Compare November 22, 2024 12:13
@cameel cameel enabled auto-merge November 22, 2024 12:14
@cameel cameel merged commit 060bcea into develop Nov 22, 2024
73 checks passed
@cameel cameel deleted the more-precise-optimizer-settings-docs branch November 22, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants