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

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

    [ 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