Skip to content

JS: cache more predicates#5768

Merged
codeql-ci merged 1 commit into
github:mainfrom
erik-krogh:cacheMore
May 4, 2021
Merged

JS: cache more predicates#5768
codeql-ci merged 1 commit into
github:mainfrom
erik-krogh:cacheMore

Conversation

@erik-krogh
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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