Generated read() should just switch directly on field.id
--------------------------------------------------------

                 Key: THRIFT-674
                 URL: https://issues.apache.org/jira/browse/THRIFT-674
             Project: Thrift
          Issue Type: Improvement
          Components: Compiler (Java)
    Affects Versions: 0.2
            Reporter: Chad Walters


THRIFT-623 introduced a performance regression in the Java bindings.

Instead of mapping field.id to an enum, testing if the enum is null, and then 
switching on the enum, the switch should just work directly on field.id, with a 
default case to handle unknown values.

In some benchmarks I ran, this fix saved 13% on deserialization time.


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

Reply via email to