Skip to content

Comments

opt: replace HashMap with fixed-size array for opcode counts in CountInspector#3203

Merged
rakita merged 1 commit intobluealloy:mainfrom
jackwener:vec_index
Dec 3, 2025
Merged

opt: replace HashMap with fixed-size array for opcode counts in CountInspector#3203
rakita merged 1 commit intobluealloy:mainfrom
jackwener:vec_index

Conversation

@jackwener
Copy link
Contributor

refactors the CountInspector in crates/inspector/src/count_inspector.rs to use a fixed-size array for opcode counting instead of a HashMap.

@jackwener jackwener changed the title refactor: replace HashMap with fixed-size array for opcode counts in CountInspector opt: replace HashMap with fixed-size array for opcode counts in CountInspector Dec 3, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Dec 3, 2025

CodSpeed Performance Report

Merging #3203 will not alter performance

Comparing jackwener:vec_index (923a41f) with main (6cf44ef)

Summary

✅ 173 untouched

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

lgtm, it is faster to fetch from array than from map

@rakita rakita merged commit d013bc2 into bluealloy:main Dec 3, 2025
31 checks passed
@github-actions github-actions bot mentioned this pull request Dec 3, 2025
@jackwener jackwener deleted the vec_index branch December 3, 2025 10:28
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