Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Merge Buffer update #34

Merged
merged 10 commits into from
Jul 30, 2018
Merged

Merge Buffer update #34

merged 10 commits into from
Jul 30, 2018

Conversation

popstarfreas
Copy link
Owner

This will replace the hex-string based reader/writers with their buffer equivalents. The writers api has not changed, but the readers will now require a buffer instead of a hex string.

A rudimentary test shows 300% faster for reading and 200% faster for writing (or the other way around). The actual performance bonus might not be as much.
All method calls on the writer are deferred and the size incremented for each one prior, until .data or .buf is called which is when all the data is written.
Also add back a missing test
PacketWriter also now allows specifying a writer to use
@popstarfreas popstarfreas merged commit 8bc8708 into dev Jul 30, 2018
@popstarfreas popstarfreas deleted the buf branch July 30, 2018 17:36
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.

None yet

1 participant