Skip to content

Look up MesageFormat[256] table to improve the unpack performance - #85

Merged
xerial merged 1 commit into
v07-draftfrom
v07-table-lookup
May 13, 2014
Merged

Look up MesageFormat[256] table to improve the unpack performance#85
xerial merged 1 commit into
v07-draftfrom
v07-table-lookup

Conversation

@xerial

@xerial xerial commented May 12, 2014

Copy link
Copy Markdown
Member

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

frsyuki commented May 12, 2014

Copy link
Copy Markdown
Member

👍

1 similar comment
@oza

oza commented May 12, 2014

Copy link
Copy Markdown
Member

👍

@komamitsu

Copy link
Copy Markdown
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.

4 participants