Skip to content
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

JS: Update featurization for absent features optimization #7376

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

@henrymercer
Copy link
Contributor

@henrymercer henrymercer commented Dec 13, 2021

Absent features are now represented implicitly by the absence of a row in the tokenFeatures relation, rather than explicitly by an empty string. This leads to improved runtime performance. To enable this implicit representation, we pass the set of supported token features to the scoreEndpoints HOP.

This change requires CodeQL CLI v2.7.4 — we will likely want to hold off on merging this until that version of the CLI is released.

Internal PR backlinked.

@henrymercer henrymercer requested a review from Z80coder Dec 13, 2021
@github-actions github-actions bot added the JS label Dec 13, 2021
Copy link
Contributor

@Z80coder Z80coder left a comment

Nice! LGTM

@henrymercer henrymercer force-pushed the henrymercer/js-atm-absent-features-optimization branch from 33e0ac8 to 2f9776d Dec 17, 2021
@henrymercer henrymercer changed the base branch from main to henrymercer/js-atm-only-featurize-with-flow Dec 17, 2021
Base automatically changed from henrymercer/js-atm-only-featurize-with-flow to main Dec 17, 2021
Absent features are now represented implicitly by the absence of a row
in the `tokenFeatures` relation, rather than explicitly by an empty
string. This leads to improved runtime performance. To enable this
implicit representation, we pass the set of supported token features to
the `scoreEndpoints` HOP. Requires CodeQL CLI v2.7.4.
@henrymercer henrymercer force-pushed the henrymercer/js-atm-absent-features-optimization branch from 2f9776d to 144ec8c Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants