Improve performance of Graph.transitive_closure() - #1014
Conversation
Merging this PR will regress 1 benchmark
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes |
Previously we were looping over all edges for each node in the graph. Now we build a dict, making the traversal linear rather than quadratic.
|
I don't think there's a way to not regress the Ultimately none of this is going to have any measurable impact on real world graphs.. but this does at least make the codspeed task fast(ish) again. I think we should take it. |
|
If you could, maybe a quick before/after test with at least one gecko graph as a sanity check would be in order before this lands? |
There's too much noise to tell, especially due to that one 70s outlier. Seems like there's not a regression at least (as expected) Before: After: |
No description provided.