-
Notifications
You must be signed in to change notification settings - Fork 151
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
Performance of make_basic_network #913
Comments
@ccoffrin I have opened two PRs to address the initial deepcopy (#915) and the identification of connected components (#914). The 3rd room for performance improvement is within I believe this is not necessary, since we deepcopy the initial data dictionary, and everything afterwards modifies the data dict in-place. As far as I can see, PowerModels.jl/src/core/data_basic.jl Lines 156 to 160 in 8e346b4
|
Has this been addressed by #919? |
The
make_basic_network
function is slow for large networks.The timings below were obtained with
@time make_basic_network(data)
wheredata
was loaded with the PGLib package.1354_pegase
2869_pegase
9241_pegase
13659_pegase
30000_goc
I profiled it on the
9241_pegase
case:which shows that, besides an initial
deepcopy
which we can't do much about, a substantial amount of time is spent identifying connected components.Note that the very high stacktrace with
_cc_dfs
corresponds to recursive calls to a DFS implementation here.PR coming
The text was updated successfully, but these errors were encountered: