Skip to content

Python: Speed up taint-tracking #1169

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

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

markshannon
Copy link
Contributor

Avoid computing many redundant copies of flow-step for dicts and sequences.
For example, the path-injection query has 114 different SequenceKind or DictKind. Most of these are unused, so we don't want to compute flow-steps for them.
Reduces the size of TaintKind.getTaintForFlowStep(...), which could exceed 1Gb, to about 2% of its original size.

@markshannon markshannon added this to the 1.20 milestone Mar 26, 2019
Copy link
Contributor

@taus-semmle taus-semmle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Will merge as soon as the tests pass.

@taus-semmle taus-semmle merged commit 52d8ca0 into github:rc/1.20 Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants