avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eelco Hillenius (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-143) use ASM to accellerate reflection
Date Thu, 15 Oct 2009 00:41:31 GMT

    [ https://issues.apache.org/jira/browse/AVRO-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765840#action_12765840
] 

Eelco Hillenius commented on AVRO-143:
--------------------------------------

> To see what backed up? That reflection is 100x slower than normal Java code at setting
fields?

It's not going to make Avro 100x faster I'm sure :-) I'm just saying that it would be interesting
to learn what the gain is when it is implemented.

FYI, there is a little discussion on Avro & alternatives on the SeaJUG list: http://tech.groups.yahoo.com/group/seajug/message/15479

> use ASM to accellerate reflection
> ---------------------------------
>
>                 Key: AVRO-143
>                 URL: https://issues.apache.org/jira/browse/AVRO-143
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>
> Java reflection is very slow, about 100 times slower for field access than normal Java
code.  However reflection might be a useful tool for converting existing codebases to use
Avro.
> One could, using ASM (http://asm.ow2.org/) make existing compiled classes to implement
the SpecificRecord interface or something similar:
> http://hadoop.apache.org/avro/docs/current/api/java/org/apache/avro/specific/SpecificRecord.html
> This would make existing classes as fast to serialize as generated classes.

-- 
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