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

Speed up hex serialization and fix warnings #208

Merged
merged 5 commits into from
Sep 3, 2019

Conversation

Demi-Marie
Copy link
Contributor

This uses unsafe code (with a proof of safety) to speed up
serialization. It also fixes a warning due to a deprecated ... range
pattern.

@parity-cla-bot
Copy link

It looks like @demimarie-parity hasn't signed our Contributor License Agreement, yet.

The purpose of a CLA is to ensure that the guardian of a project's outputs has the necessary ownership or grants of rights over all contributions to allow them to distribute under the chosen licence.
Wikipedia

You can read and sign our full Contributor License Agreement at the following URL: https://cla.parity.io

Once you've signed, please reply to this thread with [clabot:check] to prove it.

Many thanks,

Parity Technologies CLA Bot

This uses unsafe code (with a proof of safety) to speed up
serialization.  It also fixes a warning due to a deprecated `...` range
pattern.
Copy link
Member

@ordian ordian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but comments need to be updated.

primitive-types/impls/serde/src/serialize.rs Outdated Show resolved Hide resolved
primitive-types/impls/serde/src/serialize.rs Outdated Show resolved Hide resolved
Demi-Marie and others added 2 commits September 2, 2019 10:21
Co-Authored-By: Andronik Ordian <write@reusable.software>
Deserializing an unbounded, untrusted input stream is generally a DoS
vulnerability anyway, even with Serde.  So this is not normally
exploitable.
@Demi-Marie Demi-Marie merged commit 3f085ef into master Sep 3, 2019
@Demi-Marie Demi-Marie deleted the demi/speedup-and-fix-warnings branch September 3, 2019 17:51
ordian added a commit that referenced this pull request Sep 5, 2019
* master:
  [plain_hasher] Migrate to 2018 edition (#213)
  [ethbloom] Improve ethbloom (#215)
  [rlp] fix nested unbounded lists (#203)
  stabilize parity-bytes in no_std environment (#212)
  Speed up hex serialization, support Serde `with`, and fix warnings (#208)
  [ethbloom, ethereum-types,kvdb] migrate to 2018 edition (#205)
  Introduce `ContractAddress` newtype instead of scheme enum (#200)
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.

7 participants