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

Cache Method in RPC handler

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 0.94.3
    • None
    • None
    • None

    Description

      Every call in rpc handler a Method will be created, if we cache the method will improve a little.
      I test with 0.90, Average Class.getMethod(String name, Class... parameterTypes) cost 4780 ns , if we cache it cost 2620 ns.

      Attachments

        1. HBASE-6338-90.patch
          3 kB
          Lijin Bin
        2. HBASE-6338-90-2.patch
          3 kB
          Lijin Bin
        3. HBASE-6338-92.patch
          3 kB
          Lijin Bin
        4. HBASE-6338-92-2.patch
          3 kB
          Lijin Bin
        5. HBASE-6338-94.patch
          3 kB
          Lijin Bin
        6. HBASE-6338-94-2.patch
          3 kB
          Lijin Bin
        7. HBASE-6338-trunk.patch
          7 kB
          Lijin Bin
        8. HBASE-6338-trunk-2.patch
          4 kB
          Lijin Bin

        Activity

          People

            Unassigned Unassigned
            binlijin Lijin Bin
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: