Skip to content

perf: iterate HashMap entries to avoid unnecessary hash lookups#666

Merged
anshalshukla merged 2 commits intomainfrom
zclawz/issue-663
Mar 19, 2026
Merged

perf: iterate HashMap entries to avoid unnecessary hash lookups#666
anshalshukla merged 2 commits intomainfrom
zclawz/issue-663

Conversation

@zclawz
Copy link
Copy Markdown
Contributor

@zclawz zclawz commented Mar 13, 2026

Closes #663

Summary

Replaced O(numValidators) loops with HashMap entry iteration, avoiding wasted hash lookups for non-existent tracker entries.

Testing

  • zig build test passes

@zclawz zclawz requested a review from g11tech March 13, 2026 05:58
@anshalshukla anshalshukla merged commit 4bc4651 into main Mar 19, 2026
8 checks passed
@anshalshukla anshalshukla deleted the zclawz/issue-663 branch March 19, 2026 05:21
GrapeBaBa pushed a commit that referenced this pull request Apr 2, 2026
#663) (#666)

Co-authored-by: zclawz <zclawz@blockblaz.io>
Co-authored-by: Anshal Shukla <53994948+anshalshukla@users.noreply.github.com>
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.

avoid unnecessary hash lookups

2 participants