-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce memory footprint in dof distribution for MixedDofHandler
This reduces memory used in dof distribution for MixedDofHandler by only storing the first dof that are added for every entity, instead of the range of dofs. This simply copies the logic from DofHandler, which also means that MixedDofHandler now also support multiple dofs per face in 2D, but not in 3D, just like DofHandler. This closes the performance gap between the DofHandlers (benchmark code from #637): ``` 1.397 s (257 allocations: 543.50 MiB) # MixedDofHandler master 1.220 s (249 allocations: 456.05 MiB) # MixedDofHandler patch 1.267 s (234 allocations: 405.12 MiB) # DofHandler master/patch ```
- Loading branch information
1 parent
bec3ebf
commit 0bd2bce
Showing
2 changed files
with
105 additions
and
64 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