yandrey321 opened a new pull request, #10948:
URL: https://github.com/apache/ozone/pull/10948

   ## What changes were proposed in this pull request?
   
   Use EnumMap for ports in DatanodeDetails
   
   Previously DatanodeDetails stored its ports in a List<Port>, so every port 
lookup (getPort(Name), hasPort(Name)) was a linear scan. This PR replaces the 
backing store with an EnumMap<Port.Name, Port>, making keyed access O(1). 
Port.equals/hashCode are already name-based, so a name-keyed map is the natural 
fit.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16043
   
   ## How was this patch tested?
   
   Unit and integration 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.

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]

Reply via email to