[
https://issues.apache.org/jira/browse/THRIFT-674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bryan Duxbury resolved THRIFT-674.
----------------------------------
Resolution: Fixed
Fix Version/s: 0.3
Great, I just committed this. Thanks for bringing it to my attention, Chad!
> 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
> Assignee: Bryan Duxbury
> Fix For: 0.3
>
> Attachments: thrift-674.patch
>
>
> 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.