-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eskip: use Predicate instead of matcher (#2871)
They are equivalent and using predicate reduces unnecessary copying. This is also consistent with parsing filters straight into `[]*Filter`. ``` goos: linux goarch: amd64 pkg: github.com/zalando/skipper/eskip │ HEAD~1 │ HEAD │ │ sec/op │ sec/op vs base │ ParsePredicates-8 9.192µ ± 2% 8.788µ ± 3% -4.40% (p=0.007 n=10) Parse-8 273.1m ± 2% 260.6m ± 2% -4.58% (p=0.000 n=10) geomean 1.585m 1.513m -4.49% │ HEAD~1 │ HEAD │ │ B/op │ B/op vs base │ ParsePredicates-8 2.008Ki ± 0% 1.961Ki ± 0% -2.33% (p=0.000 n=10) Parse-8 49.94Mi ± 0% 49.02Mi ± 0% -1.83% (p=0.000 n=10) geomean 320.4Ki 313.7Ki -2.08% │ HEAD~1 │ HEAD │ │ allocs/op │ allocs/op vs base │ ParsePredicates-8 33.00 ± 0% 32.00 ± 0% -3.03% (p=0.000 n=10) Parse-8 1.100M ± 0% 1.080M ± 0% -1.82% (p=0.000 n=10) geomean 6.025k 5.879k -2.43% ``` Signed-off-by: Alexander Yastrebov <[email protected]>
- Loading branch information
1 parent
3bb19db
commit ce65352
Showing
4 changed files
with
55 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters