Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-27276

Reduce reflection overhead in Filter deserialization

    XMLWordPrintableJSON

Details

    Description

      Running hbase 2.4.x, I recently profiled one of our clusters which does a very high volume of random reads. An astonishing 12% of CPU time was just spent deserializing in ProtobufUtil.toFilter.

      One immediate thought would be to cache String -> Class mappings. Currently Class.forName shows up multiple times (6 in my example) in the profile, each time taking over 1%. I think this is partially due to using FilterList in this example.

       

      Attachments

        1. async-prof-pid-9037-cpu-1.html
          280 kB
          Bryan Beaudreault

        Issue Links

          Activity

            People

              bbeaudreault Bryan Beaudreault
              bbeaudreault Bryan Beaudreault
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: