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

perf(core): Add a count min sketch for eq filter #9218

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

harshil-goel
Copy link
Contributor

@harshil-goel harshil-goel commented Nov 13, 2024

No description provided.

@harshil-goel harshil-goel requested a review from a team as a code owner November 13, 2024 21:28
@github-actions github-actions bot added area/testing Testing related issues area/core internal mechanisms go Pull requests that update Go code labels Nov 13, 2024
@harshil-goel harshil-goel force-pushed the harshil-goel/stats-cm-sketch branch from 176bb00 to 5b5872b Compare January 13, 2025 17:20
@harshil-goel harshil-goel requested a review from a team as a code owner January 13, 2025 17:20
Copy link

trunk-io bot commented Jan 13, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

worker/task.go Outdated
return true
}

if uint64(len(uidlist)) < Config.TypeFilterUidLimit && checkUidEmpty(uidlist) {
Copy link
Contributor

@xqqp xqqp Jan 13, 2025

Choose a reason for hiding this comment

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

If checkUidEmpty() returns false at this point, it will also return false at line 1838, so you can return early. Also, shouldn't checkUidEmpty() be called checkUidNotEmpty(), because it returns true if all values are not zero?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core internal mechanisms area/testing Testing related issues go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

2 participants