richardstartin opened a new pull request, #2118: URL: https://github.com/apache/helix/pull/2118
### Issues Fixes #2117 ### Description This PR makes minor changes to `ClusterStatusMonitor` and `PerInstanceResourceMonitor` to avoid the bottleneck described in #2117. Notably: * Use `computeIfAbsent` instead of multiple `HashMap` methods which duplicate work * More efficient `hashCode` implementation in `PerInstanceResourceMonitor$BeanName` (avoid calling `toString`) * More efficient `toString` implementation in `PerInstanceResourceMonitor$BeanName` (`String.format` is expensive) Also removes some code warnings in `PerInstanceResourceMonitor` - remove unnecessary boxing, calls to `toString` etc. ### Tests This does not have any functional impact. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
