adriancole commented on a change in pull request #2582: Reuse char[] buffer
when decoding hex fields.
URL: https://github.com/apache/incubator-zipkin/pull/2582#discussion_r283085980
##########
File path: zipkin/src/main/java/zipkin2/internal/Proto3Fields.java
##########
@@ -164,6 +164,13 @@ final int readLengthPrefix(Buffer b) {
static final char[] HEX_DIGITS =
{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd',
'e', 'f'};
+ // Reuse the buffer for decoding into hex since it's immediately copied
into a String.
+ static final ThreadLocal<char[]> THIRTY_TWO_CHARS = new
ThreadLocal<char[]>() {
Review comment:
git notifications are delayed for some reason. wires crossed! that was it
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services