-
Notifications
You must be signed in to change notification settings - Fork 779
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
Use StringView for protocol stack to avoid calling strlen on strings with a known length. #1534
Conversation
I checked the compiler output and AFAICT passing a |
FreeBSD build failed! See https://ci.trafficserver.apache.org/job/freebsd-github/1665/ for details. |
Intel CC build successful! See https://ci.trafficserver.apache.org/job/icc-github/97/ for details. |
Linux build successful! See https://ci.trafficserver.apache.org/job/linux-github/1561/ for details. |
FreeBSD build failed! See https://ci.trafficserver.apache.org/job/freebsd-github/1666/ for details. |
clang-analyzer build failed! See https://ci.trafficserver.apache.org/job/clang-analyzer-github/229/ for details. |
Linux build successful! See https://ci.trafficserver.apache.org/job/linux-github/1562/ for details. |
Intel CC build successful! See https://ci.trafficserver.apache.org/job/icc-github/98/ for details. |
Linux build successful! See https://ci.trafficserver.apache.org/job/linux-github/1563/ for details. |
Intel CC build successful! See https://ci.trafficserver.apache.org/job/icc-github/99/ for details. |
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/freebsd-github/1667/ for details. |
clang-analyzer build failed! See https://ci.trafficserver.apache.org/job/clang-analyzer-github/230/ for details. |
clang-analyzer build failed! See https://ci.trafficserver.apache.org/job/clang-analyzer-github/231/ for details. |
Intel CC build successful! See https://ci.trafficserver.apache.org/job/icc-github/100/ for details. |
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/freebsd-github/1668/ for details. |
Linux build successful! See https://ci.trafficserver.apache.org/job/linux-github/1564/ for details. |
clang-analyzer build successful! See https://ci.trafficserver.apache.org/job/clang-analyzer-github/232/ for details. |
👍 |
Hmmmm. I think I'd leave that for another day. Those aren't really used internally, only to forward the API request. The return value isn't examined except to check for |
@bryancall says |
478e409
to
edd309d
Compare
Squashing and verifying. |
RAT check failed! https://ci.trafficserver.apache.org/job/RAT-github/53/ |
clang format successful! https://ci.trafficserver.apache.org/job/clang-format-github/40/ |
AU check failed! https://ci.trafficserver.apache.org/job/autest-github/38/ |
FreeBSD11 build successful! https://ci.trafficserver.apache.org/job/freebsd-github/1735/ |
Intel CC build successful! https://ci.trafficserver.apache.org/job/icc-github/164/ |
Linux build successful! https://ci.trafficserver.apache.org/job/linux-github/1630/ |
clang-analyzer build successful! https://ci.trafficserver.apache.org/job/clang-analyzer-github/296/ |
Change protocol stack reporting to use StringView to avoid strlen calls. See apache#1520, apache#1534 Cherry pick a9a354a ebd6815
This is an alternative proposal to #1520.