Skip to content

a few changes #7

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

Merged
merged 23 commits into from
May 31, 2017
Merged

a few changes #7

merged 23 commits into from
May 31, 2017

Conversation

chpio
Copy link
Contributor

@chpio chpio commented May 31, 2017

just a "few" changes

not included/todo:

  • adding #[inline]
  • using smallvec, the code should already be using as_ref as it's faster than into_vec
  • no copy: needs the input to be a cohesive block of memory (&[u8]) thus no support for streaming (Read). Also it would make the code simpler (no need to store the next token inside the deserializer)
  • clean up error messages

@chpio chpio closed this May 31, 2017
@chpio chpio reopened this May 31, 2017
@toby toby merged commit bc310fa into toby:master May 31, 2017
@toby
Copy link
Owner

toby commented May 31, 2017

This is really excellent! Thank you for the great contribution. I've merged and published an updated crate.

https://github.com/toby/serde-bencode/releases/tag/v0.2.0

Happy to merge any additional contributions or chat about future dev (tobypadilla@gmail.com).

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.

2 participants