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

[memprof] Call SmallVector::reserve #86055

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

kazutakahirata
Copy link
Contributor

With one raw memprof file I have, NumPCs averages about 41. Given the
default number of inline elements being 8 for SmallVector<uint64_t>,
we should reserve the storage in advance.

With one raw memprof file I have, NumPCs averages about 41.  Given the
default number of inline elements being 8 for SmallVector<uint64_t>,
we should reserve the storage in advance.
@kazutakahirata kazutakahirata merged commit f5ef9bd into llvm:main Mar 21, 2024
5 checks passed
@kazutakahirata kazutakahirata deleted the pr_memprof_reserve branch March 21, 2024 18:18
chencha3 pushed a commit to chencha3/llvm-project that referenced this pull request Mar 23, 2024
With one raw memprof file I have, NumPCs averages about 41.  Given the
default number of inline elements being 8 for SmallVector<uint64_t>,
we should reserve the storage in advance.
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