Closed Floweynt closed 1 month ago
Thank you for this issue. Appreciated!
The suggested implementation has been integrated but has a negligible impact on the actual performance as the evaluation of these functions is not a time-critical routine. Closing this issue as resolved.
In
coulomb_repulsion
andnuclear
, there are calls likeFgamma(i + j + k, ...)
within loops.This is bad for performance. You call Fgamma
Imax * Jmax * Kmax
times, but onlyImax + Jmax + Kmax
invocations will have distinct parameters.This can be fixed by memorizing the results & precomputing: