forked from FEniCS/ufl
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance improvements for transformations (FEniCS#69)
* Eagerly DAGify when comparing for equality If we determine that two expressions are equal, we can DAGify by replacing the operands of one with the operands of the other. This significantly speeds up traversals for complex forms that have many equal sub-terms. * map_dag: Allow caller to provide caches This will help reuse of transformed traversals when the same mapping function is applied multiple times. This occurs, for example, in the dispatching for derivatives in apply_derivatives. * restrictions: Reuse caches between calls to restriction propagation * derivatives: Reuse cache between calls to dispatched rulesets
- Loading branch information
Showing
4 changed files
with
71 additions
and
17 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
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