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

refactor(dfir_rs): use SlotMap-esque for Subgraph & Handoff datastructure #1637

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

MingweiSamuel
Copy link
Member

@MingweiSamuel MingweiSamuel commented Jan 9, 2025

Previously we used wrapper types around usize indexes, but any accesses into the Vec required unwrapping the usize value. This adds a proper wrapper class called SlotVec which has an API based on SlotMap with the main difference being that SlotVec does not support removals and therefore doesn't need the (very slight) overhead of generational indices

@MingweiSamuel MingweiSamuel marked this pull request as ready for review January 9, 2025 01:18
Copy link
Member

@shadaj shadaj left a comment

Choose a reason for hiding this comment

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

Seems reasonable!

@MingweiSamuel MingweiSamuel merged commit efb31e1 into hydro-project:main Jan 14, 2025
15 checks passed
@MingweiSamuel MingweiSamuel deleted the slotmapesque branch January 14, 2025 02:27
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