Skip to content

Speed up hex serialization and fix warnings#208

Merged
Demi-Marie merged 5 commits into
masterfrom
demi/speedup-and-fix-warnings
Sep 3, 2019
Merged

Speed up hex serialization and fix warnings#208
Demi-Marie merged 5 commits into
masterfrom
demi/speedup-and-fix-warnings

Conversation

@Demi-Marie

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

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

@Demi-Marie Demi-Marie requested review from dvdplm and ordian September 1, 2019 23:06
This uses unsafe code (with a proof of safety) to speed up
serialization.  It also fixes a warning due to a deprecated `...` range
pattern.
@Demi-Marie Demi-Marie force-pushed the demi/speedup-and-fix-warnings branch from 1b5f2e0 to a31c433 Compare September 1, 2019 23:14
Comment thread primitive-types/impls/serde/src/serialize.rs Outdated
Comment thread primitive-types/impls/serde/src/serialize.rs Outdated
Comment thread primitive-types/impls/serde/src/serialize.rs Outdated
Comment thread primitive-types/impls/serde/src/serialize.rs

@ordian ordian left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread primitive-types/impls/serde/src/serialize.rs Outdated
Comment thread primitive-types/impls/serde/src/serialize.rs Outdated
Comment thread primitive-types/impls/serde/src/serialize.rs Outdated
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