[
https://issues.apache.org/jira/browse/HDDS-13324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated HDDS-13324:
------------------------------------
Summary: Optimize memory footprint for Recon listKeys API (was: Ozone
Recon - Optimize memory footprint for listKeys API.)
> 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
>
> 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]