forked from AlgebraicJulia/ACSets.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
@inline
annotations to [getindex|setindex!](::ACSet, ...)
These functions can be significantly optimized with constant information available within their arguments, so it would be beneficial to enforce constant propagation for them. This can be achieved using `Base.@constprop :aggressive` or `@inline`, and since these functions are likely to be used frequently, I think promoting inline expansion with `@inline` is a good approach, so I chose to use `@inline`. - fixes AlgebraicJulia#121
- Loading branch information
Showing
2 changed files
with
39 additions
and
24 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