Skip to content

(perf) send_one_computed_queries: reuse aggregation HashMaps#2909

Merged
Centril merged 2 commits into
masterfrom
centril/send_one_computed_queries-reuse-hashmaps
Jun 27, 2025
Merged

(perf) send_one_computed_queries: reuse aggregation HashMaps#2909
Centril merged 2 commits into
masterfrom
centril/send_one_computed_queries-reuse-hashmaps

Conversation

@Centril
Copy link
Copy Markdown
Contributor

@Centril Centril commented Jun 27, 2025

Description of Changes

Store the aggregation HashMaps in SendWorker in-between doing send_one_computed_queries.
The latest region 9 flamegraph shows that most of send_one_computed_queries is spent allocating hash maps.
That's wasted work, as we can simply reuse the same two hash maps again and again.

API and ABI breaking changes

None

Expected complexity level and risk

1, local and fairly simple change.

Testing

Covered by existing tests.

Reviewer notes

Hide those whitespace changes!

@Centril Centril enabled auto-merge June 27, 2025 19:18
@Centril Centril added this pull request to the merge queue Jun 27, 2025
Merged via the queue into master with commit a7293a3 Jun 27, 2025
19 checks passed
@Centril Centril deleted the centril/send_one_computed_queries-reuse-hashmaps branch June 27, 2025 20:48
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