Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-143

use ASM to accellerate reflection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • java
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cutting Doug Cutting
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: