-
Notifications
You must be signed in to change notification settings - Fork 5
Fix unsound assumption of chunks being disjoint #89
Copy link
Copy link
Open
Description
See #87 (comment)
I assume we could still do things in parallel if we want.
We could create a DisjointViews (or so) struct that holds non-overlapping ArrayBytesFixedDisjointViews and has a safe fn add(&mut self, ...) -> bool that returns if a region was safely added (would not overlap with the already contained regions) or not. Then at runtime,
- create a
Vec<DisjointViews>by first trying to add each view to the firstDisjointViewsobject, then the second, … until each view has been added. - go over the vec and handle each
DisjointViewsobject in parallel.
There could be pathological cases where that doesn’t work well, but in practice, those shouldn’t happen
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels