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

eval: simplify query.RawConfig #833

Merged
merged 1 commit into from
Sep 24, 2024
Merged

eval: simplify query.RawConfig #833

merged 1 commit into from
Sep 24, 2024

Conversation

stefanhengl
Copy link
Member

While working on scoring I noticed that public repos always have an advantage compared to private repos. The reason is that we have doc(rawConfig:RcOnlyPublic|...) as part of the match tree, which contributes +1 to the atom count.

For compound shards this won't help because we will likely have a mix of public and private repos, but this is still a good optimization to have in general.

Test plan:
New unit test

While working on scoring I noticed that public repos always have an
advantage compared to private repos, because we have
`doc(rawConfig:RcOnlyPublic|...)` as part of the matchtree, which
contributues +1 to the atom count.

Test plan:
New unit test
@cla-bot cla-bot bot added the cla-signed label Sep 23, 2024
@stefanhengl stefanhengl requested a review from a team September 23, 2024 12:17
Copy link
Member

@jtibshirani jtibshirani left a comment

Choose a reason for hiding this comment

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

Nice test!

@stefanhengl stefanhengl merged commit a6e3dc2 into main Sep 24, 2024
9 checks passed
@stefanhengl stefanhengl deleted the sh/simplify-raw-config branch September 24, 2024 07:53
Copy link
Member

@keegancsmith keegancsmith left a comment

Choose a reason for hiding this comment

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

nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants