-
Notifications
You must be signed in to change notification settings - Fork 89
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
filter-processor: Remove reflection #1468
filter-processor: Remove reflection #1468
Conversation
* Don't add entries for tags in the middle. * Add type casting. * Add manual ignores for things like signatures.
Codecov Report
@@ Coverage Diff @@
## develop #1468 +/- ##
===========================================
+ Coverage 64.69% 65.71% +1.01%
===========================================
Files 84 84
Lines 11504 11467 -37
===========================================
+ Hits 7442 7535 +93
+ Misses 3493 3364 -129
+ Partials 569 568 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
conduit/plugins/processors/filterprocessor/expression/expression.go
Outdated
Show resolved
Hide resolved
conduit/plugins/processors/filterprocessor/expression/expression.go
Outdated
Show resolved
Hide resolved
func BenchmarkSearch(b *testing.B) { | ||
exp, err := MakeExpression(EqualToFilter, "10", "") | ||
require.NoError(b, err) | ||
|
||
b.ResetTimer() | ||
for i := 0; i < b.N; i++ { | ||
exp.Search("11") | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Summary
Next round of changes after #1463
ExactFilter
andEqualToFilter
Test Plan
New unit tests and existing regression tests.