Skip to content

Conversation

@xerial
Copy link
Member

@xerial xerial commented May 12, 2014

I measured the performance difference of byte code to MessageFormat conversion between using switch-case statements, MesageFormat.values()[byte[256]] (one-indirection) and MessageFormat[256] (no indirection) look-up table. The last one is the orders of magnitude faster than the other methods, so I modified the code to create MessageFormat[256] for looking up MessageFormat types.

performance comparison

@xerial xerial added this to the v07 milestone May 12, 2014
@frsyuki
Copy link
Member

frsyuki commented May 12, 2014

👍

1 similar comment
@oza
Copy link
Member

oza commented May 12, 2014

👍

@komamitsu
Copy link
Member

Great! 👍

xerial added a commit that referenced this pull request May 13, 2014
Look up MesageFormat[256] table to improve the unpack performance
@xerial xerial merged commit 962c3be into v07-draft May 13, 2014
@xerial xerial deleted the v07-table-lookup branch May 13, 2014 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants