Skip to content

Conversation

@jbj
Copy link
Contributor

@jbj jbj commented Sep 26, 2018

Also remove the charpred of ElementBase. This gets rid of many redundant charpred checks. It means that incomplete classes from the db are now Elements, which is maybe noisy but should not be harmful.

Together, these changes give a great reduction in DIL and should help the optimiser. It brings the DIL of UncontrolledFormatString.ql down from 43,908 lines to 35,400 35,809 lines.

This PR includes some of the changes from #215 but does unresolveElement through a dispatch predicate instead of an if. This seems to help the optimiser better.

Also remove the charpred of ElementBase. This gets rid of many redundant
charpred checks. It means that incomplete classes from the db are now
`Element`s, which is maybe noisy but should not be harmful.

Together, these changes give a great reduction in DIL and should help
the optimiser. It brings the DIL of `UncontrolledFormatString.ql` down
from 43,908 lines to 35,400 lines.
@jbj jbj added the C++ label Sep 26, 2018
@jbj jbj added this to the 1.18 milestone Sep 26, 2018
@jbj
Copy link
Contributor Author

jbj commented Sep 26, 2018

@adityasharad @aibaars: only one (or none) of #232 and #215 should be merged, and we're still testing to find out what it should be.

jbj added 2 commits September 26, 2018 14:02
Raw classes from the database that are incomplete and should be
represented by their complete twin are now allowed to be `Element`s for
performance reasons, but this commit prevents them from being `Type`s.
It was causing confusion in test results and might also cause confusion
in queries.
These two predicates were supposed to be fast but became slow after the
recent inlining of `unresolve`.
@adityasharad adityasharad merged commit 40c2926 into github:rc/1.18 Sep 26, 2018
aibaars added a commit that referenced this pull request Oct 14, 2021
Stabilise node ordering for regexp parsing test
smowton pushed a commit to smowton/codeql that referenced this pull request Feb 7, 2022
…ion-warnings

Do not report negative index warning on extension parameters
MathiasVP pushed a commit to MathiasVP/ql that referenced this pull request Aug 10, 2025
…cific-buildscripts

PowerShell: OS-specific buildscripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants