connected-components-3d
connected-components-3d copied to clipboard
feat: parallel
Adds parallel flag.
- [x] RFT pass
- [x] First pass (this is where most of the benefit is)
- [x] Relabel pass
The relabel pass was easy, but pretty marginal in terms of the performance impact. The changes that need to be made to the core equivalence pass are kind of outrageous. It might be better to maintain two separate pieces of code for single and parallel just so there's a sane version.
Got the first pass not crashing. Seems slower at the moment. Will have to figure out why. Looks like this speeds the first pass up, but slows down relabeling. Probably has something to do with making the renumbering array bigger. That can probably be handled with offsets.