-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clusterizer: Separate sparse and dense adjacency builds
In sparse mode we still had a memset(counts) that cleared the entire array; this is not necessary in sparse mode and can be meaningfully slower especially if the region of memory is fresh and the pages need to be committed. We can instead clear every used index in a separate pass. This results in a small further performance improvement. This also results in sparse builds using almost completely separate code, at which point it's cleaner to split it into a separate function, which is what this commit also does.
- Loading branch information
Showing
1 changed file
with
69 additions
and
40 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