Open gasagna opened 7 years ago
@gasagna, ForwardDiff already incorporates improvements like this and has additional speedups over DualNumbers thanks to chunking (https://arxiv.org/abs/1607.07892).
Thanks. Any chance this will be merged or you reckon it is best to move to ForwardDiff as a dependency for my package?
I'm willing to provide commit access if you (or somebody else) would like to take on some maintenance responsibility.
Thanks, but I am not sure I want to step up as maintainer of this package :)
FWIW, 0.7 should make this PR not needed since the inlining heuristics are greatly improved. However, that doesn't help 0.6 so...
I guess this can be closed?
I have noticed consistent and significant speed ups (about 1.5x) in a largish private package by adding inline annotations to methods for +, -, /, * for dual numbers.
I have sprinkled
@inline
annotation around in other parts of the module to catch other use cases, but it might be too much.