FFFF experimental: try a container growth factor of 1.5x by jsteemann · Pull Request #14811 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
jsteemann merged 7 commits intodevelfrom
feature/experimental-container-growth-factor-1-dot-5
Oct 25, 2021
Merged

experimental: try a container growth factor of 1.5x#14811
jsteemann merged 7 commits intodevelfrom
feature/experimental-container-growth-factor-1-dot-5

Conversation

@jsteemann
Copy link
Copy Markdown
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
@jsteemann jsteemann requested a review from goedderz September 22, 2021 15:50
Copy link
Copy Markdown
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

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
Copy Markdown
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.

2 participants

0