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

Prepare launch for v1.1.1 – Link time optimisation update #137

Merged
merged 27 commits into from
Jul 11, 2023
Merged

Conversation

jmaglic
Copy link
Member

@jmaglic jmaglic commented Jul 11, 2023

No description provided.

jmaglic and others added 26 commits April 10, 2023 16:02
After moving the method definitions for the Atom struct from its .h file
to a new .cpp file, the program execution slowed down slightly. It
turned out that the compiler could not perform the same optimisation
when definitions and declarations were separate. To allow this
optimisation nonetheless required enabling link-time optimisation. With
this change, program execution is around 30% faster for the release
build.
Using const reference for primitive types is less efficient.
@jmaglic jmaglic added the enhancement New feature or request label Jul 11, 2023
@jmaglic jmaglic requested a review from rlavendomme July 11, 2023 15:13
Copy link
Collaborator

@rlavendomme rlavendomme left a comment

Choose a reason for hiding this comment

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

All changes are fine.

@jmaglic jmaglic merged commit e1c4e33 into master Jul 11, 2023
@jmaglic jmaglic deleted the lto branch July 11, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants