[
https://issues.apache.org/jira/browse/HDDS-11649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen O'Donnell resolved HDDS-11649.
--------------------------------------
Fix Version/s: 2.0.0
Resolution: Fixed
> Recon ListKeys API: Simplify filter predicates
> ----------------------------------------------
>
> Key: HDDS-11649
> URL: https://issues.apache.org/jira/browse/HDDS-11649
> Project: Apache Ozone
> Issue Type: Improvement
> Components: Ozone Recon
> Reporter: Stephen O'Donnell
> Assignee: Stephen O'Donnell
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.0.0
>
>
> In the Recon ListKeys API, a series of predicate lambdas are created to
> filter the returned keys. The filters create 3 new lambdas for each key to
> check and this api could iterate a lot of keys in parallel.
> Benchmarking the original code against simple IF statements shows the IF
> statements to be about 3x faster. However the creation of all the lambda
> object resulted in about 4500MB/s of short lived objects.
> This PR simplifies the code to IF statements. It should not change any
> functionality.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]