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

Optimization of value pointers for trivially copyable types #22

Merged
merged 5 commits into from
Aug 22, 2022

Conversation

cmnrd
Copy link
Contributor

@cmnrd cmnrd commented Aug 3, 2022

In a recent optimization (#17) optimized the value pointers used by the runtime for scalar types. This avoids additional memory allocations. Experiments based on the Savina Benchmarks showed that there is potential to also reduce overhead for small structs and similar types. This PR applies the same optimization as in #17 to a wider range of types. Namely all that are trivially copyable and smaller smaller than 65 bytes. This threshold is arbitrarily chosen and we need to do more experimentation to select a good value.

Copy link
Member

@tanneberger tanneberger left a comment

Choose a reason for hiding this comment

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

Looks good to me

@tanneberger tanneberger marked this pull request as ready for review August 22, 2022 09:57
@cmnrd cmnrd merged commit f05744f into master Aug 22, 2022
@cmnrd cmnrd deleted the trivial-types branch August 22, 2022 12:00
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Aug 22, 2022
Specifically, this includes the following PRs:
- lf-lang/reactor-cpp#22
- lf-lang/reactor-cpp#23
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Aug 22, 2022
Specifically, this includes the following PRs:
- lf-lang/reactor-cpp#22
- lf-lang/reactor-cpp#23
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Aug 22, 2022
Specifically, this includes the following PRs:
- lf-lang/reactor-cpp#22
- lf-lang/reactor-cpp#23
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Aug 23, 2022
Specifically, this includes the following PRs:
- lf-lang/reactor-cpp#22
- lf-lang/reactor-cpp#23
cmnrd added a commit to lf-lang/lingua-franca that referenced this pull request Aug 23, 2022
Specifically, this includes the following PRs:
- lf-lang/reactor-cpp#22
- lf-lang/reactor-cpp#23
@lhstrh lhstrh changed the title optimize value pointers for trivially copyable types Optimization of value pointers for trivially copyable types Jan 26, 2023
@lhstrh lhstrh added the enhancement Enhancement of existing feature label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants