-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
optimizationIssues relating to optimizing existing functions of DBSTEPIssues relating to optimizing existing functions of DBSTEP
Description
Currently, we convert the list of indices to a set and then back to a list to remove duplicates. This does not scale very well compared to a simple alternative: make a bit mask (each bit marking whether a point is occupied or not) and, as you are scanning out the sphere's, set the needed indices to true. This means there will be no duplicates as each value is restricted to true or false. The overall grid can then be indexed using this mask to make the occupied grid.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
optimizationIssues relating to optimizing existing functions of DBSTEPIssues relating to optimizing existing functions of DBSTEP