runzhiwang opened a new pull request #1044: URL: https://github.com/apache/hadoop-ozone/pull/1044
## What changes were proposed in this pull request? NetUtils.normalize cost 0.17%, because it needs to do Matcher.replaceAll. It happen in the critical path, i.e. lookUpKey when read. we need not to do this when getFromProtoBuf, So we can avoid normalize by check the last character, if the last character is not `/`, we need not normalize.  ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-3743 ## How was this patch tested? Existed tests. ---------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
