Skip to content

Codec cleanup #71

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 0 commits into from
Closed

Codec cleanup #71

wants to merge 0 commits into from

Conversation

amichair
Copy link
Contributor

Split into 3 commits to make it a bit easier to follow. Highlights include getting rid of the BufPos class (lots of unnecessary object allocations), extracting the pattern matching code into a separate class, replacing Character calls with literals (since it deals with bytes, not chars, so there's no need for the overhead) a bit of renaming and little refactoring for clarity.

@chrjohn
Copy link
Member

chrjohn commented May 23, 2016

Thank you for the PR.
This has some overlaps with #47 in FixMessageEncoder. Will have to check how this can be integrated.

@amichair
Copy link
Contributor Author

There's actually not much overlap - this PR mostly modifies the decoder, and the other PR only the encoder. The encoder changes here are just in defining the constant type set (no conflict there) and extracting a toBytes() utility method which can be reverted or ignored since it is not of much consequence.

@amichair
Copy link
Contributor Author

I split the last commit further, so now the encoder changes are on a separate commit, in case that helps.

@amichair amichair closed this Jun 5, 2016
@amichair amichair deleted the codec-cleanup branch April 8, 2018 12:10
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants