hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "He Yongqiang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-1447) Speed up reflection method calls
Date Fri, 02 Jul 2010 08:11:50 GMT

    [ https://issues.apache.org/jira/browse/HIVE-1447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12884605#action_12884605
] 

He Yongqiang commented on HIVE-1447:
------------------------------------

will commit once tests pass

> Speed up reflection method calls
> --------------------------------
>
>                 Key: HIVE-1447
>                 URL: https://issues.apache.org/jira/browse/HIVE-1447
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>         Attachments: A.java, HIVE-1447.1.patch
>
>
> See http://www.cowtowncoder.com/blog/archives/2010/04/entry_396.html and http://www.jguru.com/faq/view.jsp?EID=246569
> There is a huge drop of overhead (more than half) if we do "field.setAccessible(true)"
for the field that we want to access.
> I did a simple experiment and that worked well with method as well.
> The results are (note that the method just add 1 to an integer):
> {code}
> 100000000 regular method calls:26 milliseconds.
> 100000000 reflective method calls without lookup:4029 milliseconds.
> 100000000 accessible reflective method calls without lookup:1810 milliseconds.
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message