Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-11649

Recon ListKeys API: Simplify filter predicates

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              sodonnell Stephen O'Donnell
              sodonnell Stephen O'Donnell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: