-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Avoid some redudant lookups in the particle type map (#4202)
Description of changes: - The particle type map stores an index of particle ids for the particle types, this switches the the data type from an unordered_set to a flat_set, which is more efficient for the typical use of the index, which is picking a random particle of a type in the hot loop of MC methods. - Avoid some redundant lookups in the type index
- Loading branch information
Showing
1 changed file
with
23 additions
and
13 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