You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "binlijin (JIRA)" <ji...@apache.org> on 2012/07/06 11:22:35 UTC

[jira] [Created] (HBASE-6338) Cache Method in rpc handler

binlijin created HBASE-6338:
-------------------------------

             Summary: Cache Method in rpc handler
                 Key: HBASE-6338
                 URL: https://issues.apache.org/jira/browse/HBASE-6338
             Project: HBase
          Issue Type: Improvement
            Reporter: binlijin


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.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-6338) Cache Method in rpc handler

Posted by "binlijin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

binlijin updated HBASE-6338:
----------------------------

    Attachment: HBASE-6338-92.patch
                HBASE-6338-90.patch
    
> Cache Method in rpc handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90.patch, HBASE-6338-92.patch, HBASE-6338-94.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-6338) Cache Method in rpc handler

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhihong Ted Yu updated HBASE-6338:
----------------------------------

    Status: Open  (was: Patch Available)

Hadoop QA wouldn't process non-trunk patches.
                
> Cache Method in rpc handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90.patch, HBASE-6338-92.patch, HBASE-6338-94.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-6338) Cache Method in RPC handler

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492710#comment-13492710 ] 

stack commented on HBASE-6338:
------------------------------

Might not be enough of a perf gain to gamble putting it into 0.94?
                
> Cache Method in RPC handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.94.3
>            Reporter: binlijin
>         Attachments: HBASE-6338-90-2.patch, HBASE-6338-90.patch, HBASE-6338-92-2.patch, HBASE-6338-92.patch, HBASE-6338-94-2.patch, HBASE-6338-94.patch, HBASE-6338-trunk-2.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-6338) Cache Method in RPC handler

Posted by "Michael Drzal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13449634#comment-13449634 ] 

Michael Drzal commented on HBASE-6338:
--------------------------------------

[~aoxiang] this seems to have stalled.
                
> Cache Method in RPC handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90-2.patch, HBASE-6338-90.patch, HBASE-6338-92-2.patch, HBASE-6338-92.patch, HBASE-6338-94-2.patch, HBASE-6338-94.patch, HBASE-6338-trunk-2.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-6338) Cache Method in RPC handler

Posted by "binlijin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

binlijin updated HBASE-6338:
----------------------------

    Attachment: HBASE-6338-trunk-2.patch
    
> Cache Method in RPC handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90-2.patch, HBASE-6338-90.patch, HBASE-6338-92-2.patch, HBASE-6338-92.patch, HBASE-6338-94-2.patch, HBASE-6338-94.patch, HBASE-6338-trunk-2.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-6338) Cache Method in RPC handler

Posted by "Sergey Shelukhin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487354#comment-13487354 ] 

Sergey Shelukhin commented on HBASE-6338:
-----------------------------------------

Hi. Is there plan to commit this to .94?

                
> Cache Method in RPC handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90-2.patch, HBASE-6338-90.patch, HBASE-6338-92-2.patch, HBASE-6338-92.patch, HBASE-6338-94-2.patch, HBASE-6338-94.patch, HBASE-6338-trunk-2.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-6338) Cache Method in RPC handler

Posted by "Anoop Sam John (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13413470#comment-13413470 ] 

Anoop Sam John commented on HBASE-6338:
---------------------------------------

+      sb.append("-");

Better to call StringBuilder#append(char c) for appending the character.
sb.append('-')
                
> Cache Method in RPC handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90.patch, HBASE-6338-92.patch, HBASE-6338-94.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-6338) Cache Method in rpc handler

Posted by "binlijin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

binlijin updated HBASE-6338:
----------------------------

    Attachment: HBASE-6338-94.patch
    
> Cache Method in rpc handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90.patch, HBASE-6338-92.patch, HBASE-6338-94.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-6338) Cache Method in RPC handler

Posted by "Sergey Shelukhin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Shelukhin updated HBASE-6338:
------------------------------------

    Affects Version/s: 0.94.3
    
> Cache Method in RPC handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.94.3
>            Reporter: binlijin
>         Attachments: HBASE-6338-90-2.patch, HBASE-6338-90.patch, HBASE-6338-92-2.patch, HBASE-6338-92.patch, HBASE-6338-94-2.patch, HBASE-6338-94.patch, HBASE-6338-trunk-2.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-6338) Cache Method in rpc handler

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408521#comment-13408521 ] 

Zhihong Ted Yu commented on HBASE-6338:
---------------------------------------

{code}
+    private Method getMethod(Class<? extends VersionedProtocol> protocol,
+        String methodName, Class[] parameterClasses) throws Exception {
{code}
javadoc for the above method would be desirable.

Please run test suite for the branches and publish result here.

Thanks
                
> Cache Method in rpc handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90.patch, HBASE-6338-92.patch, HBASE-6338-94.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-6338) Cache Method in RPC handler

Posted by "Sergey Shelukhin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492049#comment-13492049 ] 

Sergey Shelukhin commented on HBASE-6338:
-----------------------------------------

then this seems straightforward to just apply to 0.94
                
> Cache Method in RPC handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.94.3
>            Reporter: binlijin
>         Attachments: HBASE-6338-90-2.patch, HBASE-6338-90.patch, HBASE-6338-92-2.patch, HBASE-6338-92.patch, HBASE-6338-94-2.patch, HBASE-6338-94.patch, HBASE-6338-trunk-2.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-6338) Cache Method in RPC handler

Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491851#comment-13491851 ] 

Devaraj Das commented on HBASE-6338:
------------------------------------

On trunk (0.96), the ProtobufRpcEngine already does keep a similar mapping of methodname to Method objects.. 
                
> Cache Method in RPC handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90-2.patch, HBASE-6338-90.patch, HBASE-6338-92-2.patch, HBASE-6338-92.patch, HBASE-6338-94-2.patch, HBASE-6338-94.patch, HBASE-6338-trunk-2.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-6338) Cache Method in RPC handler

Posted by "binlijin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

binlijin updated HBASE-6338:
----------------------------

    Attachment: HBASE-6338-94-2.patch
                HBASE-6338-92-2.patch
                HBASE-6338-90-2.patch
    
> Cache Method in RPC handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90-2.patch, HBASE-6338-90.patch, HBASE-6338-92-2.patch, HBASE-6338-92.patch, HBASE-6338-94-2.patch, HBASE-6338-94.patch, HBASE-6338-trunk-2.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-6338) Cache Method in RPC handler

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhihong Ted Yu updated HBASE-6338:
----------------------------------

    Summary: Cache Method in RPC handler  (was: Cache Method in rpc handler)
    
> Cache Method in RPC handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90.patch, HBASE-6338-92.patch, HBASE-6338-94.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-6338) Cache Method in rpc handler

Posted by "binlijin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

binlijin updated HBASE-6338:
----------------------------

    Attachment: HBASE-6338-trunk.patch
    
> Cache Method in rpc handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-6338) Cache Method in rpc handler

Posted by "binlijin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

binlijin updated HBASE-6338:
----------------------------

    Status: Patch Available  (was: Open)
    
> Cache Method in rpc handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90.patch, HBASE-6338-92.patch, HBASE-6338-94.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-6338) Cache Method in RPC handler

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13412061#comment-13412061 ] 

stack commented on HBASE-6338:
------------------------------

Why javadoc a private method (especially a method named getMethod that returns a Method)?
                
> Cache Method in RPC handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-90.patch, HBASE-6338-92.patch, HBASE-6338-94.patch, HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-6338) Cache Method in rpc handler

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408059#comment-13408059 ] 

Zhihong Ted Yu commented on HBASE-6338:
---------------------------------------

The patch is more suitable for 0.94 and lower versions.
WritableRpcEngine is going away in trunk.
                
> Cache Method in rpc handler
> ---------------------------
>
>                 Key: HBASE-6338
>                 URL: https://issues.apache.org/jira/browse/HBASE-6338
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>         Attachments: HBASE-6338-trunk.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira