Skip to content

JS: cache more predicates #5768

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
May 4, 2021
Merged

JS: cache more predicates #5768

merged 1 commit into from
May 4, 2021

Conversation

erik-krogh
Copy link
Contributor

@erik-krogh erik-krogh commented Apr 26, 2021

I was looking into the performance of my new "library input -> XSS sink" query.
And I found a few predicates that seemed good to cache.

Evaluation on popular.yml
Evaluation on nightly.yml.

There is no measurable difference in DB size.

@erik-krogh erik-krogh added Awaiting evaluation Do not merge yet, this PR is waiting for an evaluation to finish no-change-note-required This PR does not need a change note labels Apr 26, 2021
@github-actions github-actions bot added the JS label Apr 26, 2021
@erik-krogh erik-krogh removed the Awaiting evaluation Do not merge yet, this PR is waiting for an evaluation to finish label Apr 26, 2021
@erik-krogh erik-krogh marked this pull request as ready for review April 26, 2021 08:58
@erik-krogh erik-krogh requested a review from a team as a code owner April 26, 2021 08:58
@erik-krogh
Copy link
Contributor Author

There is no measurable difference in DB size.

@esbena there is no difference in any DB sizes in the two evaluations.
I find that slightly suspicious.

@erik-krogh
Copy link
Contributor Author

New evaluations.
On popular
On nightly

We got a 2-3% performance improvement on the security suite.
And about 2% larger cache (which made the entire DB about 0.3 - 0.4% larger).

@codeql-ci codeql-ci merged commit b160bad into github:main May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS 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.

3 participants