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

Uses IntMap in SlotOffsets #2891

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

brooksprumo
Copy link

Problem

SlotOffsets is a map of slot to offsets. It does not need cryptographic security, so it can use IntMap instead of HashMap for better performance.

Summary of Changes

Replace HashMap with IntMap

@brooksprumo brooksprumo self-assigned this Sep 10, 2024
@brooksprumo brooksprumo marked this pull request as ready for review September 10, 2024 22:28
HaoranYi
HaoranYi previously approved these changes Sep 11, 2024
Copy link

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

Lgtm

jeffwashington
jeffwashington previously approved these changes Sep 12, 2024
Copy link

@jeffwashington jeffwashington left a comment

Choose a reason for hiding this comment

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

lgtm

@brooksprumo
Copy link
Author

I force-pushed to fix a merge conflict. No code changes since the last review. Sorry about the re-review, and thanks for understanding.

@brooksprumo brooksprumo merged commit 1b3eb3d into anza-xyz:master Sep 12, 2024
40 checks passed
@brooksprumo brooksprumo deleted the no-hash/slot-offsets branch September 12, 2024 22:50
ray-kast pushed a commit to abklabs/agave that referenced this pull request Nov 27, 2024
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.

3 participants