[
https://issues.apache.org/jira/browse/HDDS-13324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen O'Donnell resolved HDDS-13324.
--------------------------------------
Fix Version/s: 2.1.0
Resolution: Fixed
> Optimize memory footprint for Recon listKeys API
> ------------------------------------------------
>
> Key: HDDS-13324
> URL: https://issues.apache.org/jira/browse/HDDS-13324
> Project: Apache Ozone
> Issue Type: Task
> Components: Ozone Recon
> Affects Versions: 2.0.0
> Reporter: Devesh Kumar Singh
> Assignee: Devesh Kumar Singh
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.1.0
>
>
> While constructing full path prefix in constructFullPathPrefix method, below
> code can be expensive:
> {code:java}
> fullPath.insert(0, nsSummary.getDirName() + OM_KEY_PREFIX);{code}
> * Inserting at position {{0}} in a {{StringBuilder}} has
> {noformat}
> O(n){noformat}
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]