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

experimental: try a container growth factor of 1.5x #14811

Merged
merged 7 commits into from
Oct 25, 2021

Conversation

jsteemann
Copy link
Contributor

@jsteemann jsteemann commented Sep 22, 2021

Scope & Purpose

Should be merged for 3.10.

As suggest by @goedderz in #14803 (comment):

Experimental: try a container growth factor of 1.5x instead of 2x. We will have to see if this has an impact in our regular performance tests.
If this does not have any measurable or a negative effect on performance, we can simply revert the changes in this PR.

  • 💩 Bugfix (requires CHANGELOG entry)
  • 🍕 New feature (requires CHANGELOG entry, feature documentation and release notes)
  • 🔥 Performance improvement
  • 🔨 Refactoring/simplification
  • 📖 CHANGELOG entry made

Backports:

  • No backports required

Testing & Verification

  • This change is a trivial rework / code cleanup without any test coverage.

instead of 2x. we will have to see if this has an impact in our regular
performance tests.
@jsteemann jsteemann added this to the devel milestone Sep 22, 2021
@jsteemann jsteemann marked this pull request as ready for review September 22, 2021 15:50
Copy link
Member

@goedderz goedderz left a comment

Choose a reason for hiding this comment

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

I took the time to quickly search for this. folly does this for its fbvector implementation with 1.5 as well, except for smaller capacities, where 2 is used. And what "smaller capacity" means may depend on jemalloc.

This is to exactly match the block sizes of the allocator if possible for small sizes, and start to try and re-use memory for larger sizes.

https://github.com/facebook/folly/blob/master/folly/FBVector.h#L1151
https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md

lib/Containers/Helpers.h Outdated Show resolved Hide resolved
lib/Containers/Helpers.h Outdated Show resolved Hide resolved
lib/Containers/Helpers.h Outdated Show resolved Hide resolved
jsteemann and others added 2 commits September 28, 2021 15:26
Co-authored-by: Tobias Gödderz <tobias@arangodb.com>
@jsteemann jsteemann marked this pull request as draft September 29, 2021 09:33
@jsteemann
Copy link
Contributor Author

Merging now after 3.9 branch-off...

@jsteemann jsteemann marked this pull request as ready for review October 25, 2021 10:17
@jsteemann jsteemann merged commit 187a32d into devel Oct 25, 2021
@jsteemann jsteemann deleted the feature/experimental-container-growth-factor-1-dot-5 branch October 25, 2021 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants