devmadhuu opened a new pull request, #8680: URL: https://github.com/apache/ozone/pull/8680
## What changes were proposed in this pull request? Optimize memory footprint for listKeys API. While constructing full path prefix in constructFullPathPrefix method, below code can be expensive: `fullPath.insert(0, nsSummary.getDirName() + OM_KEY_PREFIX);` Inserting at position 0 in a StringBuilder has O(n) cost because it must shift the entire buffer every time. For deeply nested paths (e.g., /a/b/c/d/e/f/g/...), this compounds quickly. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-13324 ## How was this patch tested? Tested manually and with existing junit and integration test cases. -- 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]
