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

Optimize != string allocation return results #32

Merged
merged 5 commits into from
Nov 7, 2024
Merged

Conversation

tonyhb
Copy link
Contributor

@tonyhb tonyhb commented Nov 7, 2024

Reduces allocations in the neq tests by 25%.

@tonyhb tonyhb changed the title Optimize ` Optimize != string allocation return results Nov 7, 2024
@tonyhb tonyhb force-pushed the optimize-neq-str-engine branch from 85d1bae to 1f8887a Compare November 7, 2024 01:09
@@ -241,6 +246,8 @@ func TestEvaluate_Strings_Inequality(t *testing.T) {
require.EqualValues(t, 1, len(evals))
require.EqualValues(t, 1, matched)
})

printMem(getMem(), "second match")
Copy link
Contributor

Choose a reason for hiding this comment

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

remove?

@@ -222,6 +225,8 @@ func TestEvaluate_Strings_Inequality(t *testing.T) {
require.GreaterOrEqual(t, matched, int32(1))
})

printMem(getMem(), "first match")
Copy link
Contributor

Choose a reason for hiding this comment

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

remove?

@tonyhb tonyhb merged commit 18b35b6 into main Nov 7, 2024
2 checks passed
@tonyhb tonyhb deleted the optimize-neq-str-engine branch November 7, 2024 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants