-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[opt]function use sse to opt match_ipv6_subnet #38755
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 41688 ms |
TPC-DS: Total hot run time: 169050 ms |
ClickBench: Total hot run time: 30.59 s |
|
clang-tidy review says "All clean, LGTM! 👍" |
6a5ff59 to
64e0e3c
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
|
run buildall |
TPC-H: Total hot run time: 41285 ms |
TPC-DS: Total hot run time: 169481 ms |
ClickBench: Total hot run time: 29.73 s |
|
run p0 |
| return (addr[IPV6_BINARY_LENGTH - 1 - offset] & cmpmask) == | ||
| (cidr_addr[IPV6_BINARY_LENGTH - 1 - offset] & cmpmask); | ||
| } else { | ||
| // All the bytes are equal. |
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.
why keep the unless else
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.
Just for the comment
HappenLee
left a comment
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
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
## Proposed changes test ``` ------------------------------------------------------------------- Benchmark Time CPU Iterations ------------------------------------------------------------------- BM_matchIPv6SubnetSSE 1.89 ns 1.89 ns 1000000000 BM_matchIPv6SubnetNative 4.99 ns 4.99 ns 561455254 ```
## Proposed changes test ``` ------------------------------------------------------------------- Benchmark Time CPU Iterations ------------------------------------------------------------------- BM_matchIPv6SubnetSSE 1.89 ns 1.89 ns 1000000000 BM_matchIPv6SubnetNative 4.99 ns 4.99 ns 561455254 ```
## Proposed changes #38755 test ``` ------------------------------------------------------------------- Benchmark Time CPU Iterations ------------------------------------------------------------------- BM_matchIPv6SubnetSSE 1.89 ns 1.89 ns 1000000000 BM_matchIPv6SubnetNative 4.99 ns 4.99 ns 561455254 ```
Proposed changes
test