This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
Performance Improvements #10
erikpohl53
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feeders with a large number of buildings, nodes, and/or transformers take a long time to build the primary. The following areas could be improved to reduce run time. The times listed below correspond to building a feeder with approximately 130 transformers, 5000 buildings, and 1800 nodes.
158708457 function calls (158474888 primitive calls) in 197.829 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
6426494 81.465 0.000 81.465 0.000 {method 'index' of 'list' objects}
1274 13.199 0.010 19.832 0.016 c:\Users\epohl.conda\envs_shift\lib\site-packages\networkx\classes\graph.py:530(add_nodes_from)
1274 8.278 0.006 44.120 0.035 c:\Users\epohl.conda\envs_shift\lib\site-packages\networkx\classes\graph.py:894(add_edges_from)
14638188 7.641 0.000 19.012 0.000 c:\Users\epohl.conda\envs_shift\lib\site-packages\networkx\classes\coreviews.py:282()
9748650 7.524 0.000 33.316 0.000 c:\Users\epohl.conda\envs_shift\lib_collections_abc.py:904(iter)
9807252 7.327 0.000 13.787 0.000 c:\Users\epohl.conda\envs_shift\lib\site-packages\networkx\classes\coreviews.py:336(new_node_ok)
3255071 5.618 0.000 5.621 0.000 c:\Users\epohl.conda\envs_shift\lib\site-packages\networkx\classes\coreviews.py:275(iter)
24069757 5.187 0.000 5.187 0.000 c:\Users\epohl.conda\envs_shift\lib\site-packages\networkx\classes\filters.py:54(call)
3455498 5.019 0.000 7.001 0.000 c:\Users\epohl.conda\envs_shift\lib\site-packages\networkx\classes\coreviews.py:333(getitem)
3247426 4.363 0.000 33.753 0.000 c:\Users\epohl.conda\envs_shift\lib\site-packages\networkx\classes\graph.py:1541()
9741004 4.236 0.000 4.236 0.000 c:\Users\epohl.conda\envs_shift\lib\site-packages\networkx\classes\filters.py:65()
Beta Was this translation helpful? Give feedback.
All reactions