Skip to content

C#: Re-factor the experimental PotentialTimeBomb to use new API.#12909

Merged
michaelnebel merged 2 commits intogithub:mainfrom
michaelnebel:csharp/dataflowrefactor7
May 9, 2023
Merged

C#: Re-factor the experimental PotentialTimeBomb to use new API.#12909
michaelnebel merged 2 commits intogithub:mainfrom
michaelnebel:csharp/dataflowrefactor7

Conversation

@michaelnebel
Copy link
Copy Markdown
Contributor

@michaelnebel michaelnebel commented Apr 24, 2023

There are no alerts diff when running the queries on all DCA projects.

The unit test shows a small difference in the produced data flow graph edges: I am a bit uncertain, why that is the case, but there is pretty big difference in how the data flow graph is constructed between the old and the new version. In the old version of the code all sources and sinks are added by extending a "global" configuration. This produces a set of nodes and edges used for data flow analysis in the entire graph - which I suppose might create/remove edges as the configurations get intertwined. However, when using the new API, the graphs are constructed separately for each configuration and then merged afterwards.
I think we can accept this discrepancy, since this doesn't affect the produced results in the unit tests or test projects.

@github-actions github-actions bot added the C# label Apr 24, 2023
@michaelnebel
Copy link
Copy Markdown
Contributor Author

DCA looks good and it appears there is a speedup on around 50% for the PotentialTimeBomb query.

@michaelnebel michaelnebel added the no-change-note-required This PR does not need a change note label Apr 25, 2023
@michaelnebel michaelnebel marked this pull request as ready for review April 25, 2023 08:30
@michaelnebel michaelnebel requested a review from a team as a code owner April 25, 2023 08:30
@michaelnebel michaelnebel force-pushed the csharp/dataflowrefactor7 branch from 650dcce to d01674f Compare May 8, 2023 10:48
@michaelnebel michaelnebel merged commit b1659be into github:main May 9, 2023
@michaelnebel michaelnebel deleted the csharp/dataflowrefactor7 branch May 9, 2023 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C# no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants