szetszwo commented on PR #4572: URL: https://github.com/apache/ozone/pull/4572#issuecomment-1538676830
> In my tests, this does reduce memory usage. > I found that it is not the PartKeyInfo that consumes the most memory, but the Map.entry where the PartKeyInfo is stored. `IntSparseMap` is unnecessarily complicated. Once the TreeMap is built, it won't be updated anymore. Why not simply (1) build a TreeMap, (2) copy the result to a sorted (immutable) list, (3) pass the list around (instead of passing a TreeMap) and (4) use binary search to lookup parts? -- 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]
