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

Avoid some allocations, hashes that aren't needed #1076

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

blt
Copy link
Collaborator

@blt blt commented Oct 29, 2024

What does this PR do?

This commit removes allocations in the FUSE component that don't
need to exist and adjust the interior hashmap to use FxHashMap,
avoiding a secure hash in favor of a fast one. Also, directories
now keep their children in a BTreeSet so that readdir is always
in the same order when called.

@blt blt added the no-changelog label Oct 29, 2024 — with Graphite App
@blt blt marked this pull request as ready for review October 29, 2024 20:02
@blt blt requested a review from a team as a code owner October 29, 2024 20:02
@blt blt changed the base branch from blt/simulate_all_ticks_not_just_some to graphite-base/1076 October 29, 2024 22:23
@blt blt force-pushed the blt/avoid_some_allocations_hashes_that_aren_t_needed branch from 21bd781 to b4af3bc Compare October 29, 2024 22:24
@blt blt changed the base branch from graphite-base/1076 to main October 29, 2024 22:24
@blt blt force-pushed the blt/avoid_some_allocations_hashes_that_aren_t_needed branch 2 times, most recently from 7ceaf4f to e6bc8ca Compare October 29, 2024 23:29
This commit removes allocations in the FUSE component that don't
need to exist and adjust the interior hashmap to use FxHashMap,
avoiding a secure hash in favor of a fast one. Also, directories
now keep their children in a BTreeSet so that readdir is always
in the same order when called.

Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
@blt blt force-pushed the blt/avoid_some_allocations_hashes_that_aren_t_needed branch from e6bc8ca to 94a0a35 Compare October 31, 2024 18:27
@blt blt mentioned this pull request Oct 31, 2024
@blt blt merged commit 2fd80ee into main Oct 31, 2024
17 checks passed
Copy link
Collaborator Author

blt commented Oct 31, 2024

Merge activity

  • Oct 31, 3:03 PM EDT: A user merged this pull request with Graphite.

@blt blt deleted the blt/avoid_some_allocations_hashes_that_aren_t_needed branch October 31, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants