-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(nns): Read heap neurons for cardinalities (#3103)
# Why The method `with_active_neurons_iter` is much more expensive than reading `heap_neurons` directly. In the context of neuron data validation, it's unnecessary to use `with_active_neurons_iter` since it reads both heap and stable memories. In other words, it reads `heap_neurons` not for "active neurons" but really just the neurons in the heap. # What Revert to using `heap_neurons_iter` and update benchmarks
- Loading branch information
1 parent
1f952c5
commit 09fa8e6
Showing
3 changed files
with
46 additions
and
44 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
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