-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dfir_rs): use
SlotMap
-esque for Subgraph & Handoff datastr…
…ucture (#1637) 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`](https://docs.rs/slotmap/latest/slotmap/struct.SlotMap.html) with the main difference being that `SlotVec` does not support removals and therefore doesn't need the (very slight) overhead of generational indices
- Loading branch information
1 parent
9fdb770
commit efb31e1
Showing
8 changed files
with
265 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.