Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time to first power flow #157

Open
frapac opened this issue Apr 26, 2021 · 1 comment
Open

Time to first power flow #157

frapac opened this issue Apr 26, 2021 · 1 comment

Comments

@frapac
Copy link
Member

frapac commented Apr 26, 2021

Currently, we are spending almost a minute to solve the first power flow. On Julia 1.6 and my local machine, I get in a fresh Julia session:

julia> include("tmp/launch_powerflow.jl")
 42.329781 seconds (50.81 M allocations: 2.880 GiB, 10.27% gc time)

This is mostly due to type inference issues. On Julia 1.6, fixing the type inferences on ReducedSpaceEvaluator allowed to decrease the first compile time of ExaPF.hessprod! from 3mn to 10s (see #98 ). We should be able to do the same on powerflow, and most functions exposed to the users.

@frapac
Copy link
Member Author

frapac commented Feb 4, 2022

The situation has slightly improved with the refactoring. On my local machine:

fpacaud$~/dev/anl/ExaPF.jl time julia --project fastpf.jl 
#it 0: 8.97956e-01
#it 1: 3.07254e-02
#it 2: 1.12306e-04
#it 3: 1.60348e-09

real    0m21.608s
user    0m21.255s
sys     0m1.537s


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant