nandakumar131 commented on PR #8044: URL: https://github.com/apache/ozone/pull/8044#issuecomment-2713539800
Thanks @szetszwo for the improvement. Since `ContainerID` is immutable and all the Container IDs are kept in SCM's memory, how about adding a cache layer inside `ContainerID` class and return from cache if the `ContainerID` is already present in cache rather than creating new one? This will avoid re-calculation of `hash` and `proto` conversion and also help (though very little) with SCM's memory consumption. -- 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]
