Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4568

Performance: MergingResourceProvider.ParentHidingHandler adds about 30pp rendering overhead

    XMLWordPrintableJSON

Details

    Description

      When I was analysing all read properties, I noticed a recurring pattern with sling:hideChildren and jcr:primaryType and that more than 40% of the read properties are sling:hideChildren. I figured out that sling:hideChildren is read for all parents in MergingResourceProvider.ParentHidingHandler and that the requests are processed 30-35pp faster just by commenting out the constructor code.

      Apache Benchmark results with normal ParentHidingHandler:

      50% 272
      66% 276
      75% 278
      80% 281
      90% 289
      95% 301
      98% 493
      99% 497

      Results with commented out ParentHidingHandler constructor:

      50% 185
      66% 188
      75% 191
      80% 194
      90% 202
      95% 210
      98% 333
      99% 338

      Attachments

        1. SLING-4568_skip-underlying_3.patch
          6 kB
          Joel Richard
        2. SLING-4568_exclude_search_paths.patch
          6 kB
          Joel Richard
        3. SLING-4568_experimental_cache.patch
          7 kB
          Joel Richard

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              joelrich Joel Richard
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: