Skip to content

Comments

Replace hashmap_core with hashbrown#84

Merged
andresilva merged 1 commit intoparitytech:masterfrom
koushiro:replace-hashmap-core
Aug 20, 2019
Merged

Replace hashmap_core with hashbrown#84
andresilva merged 1 commit intoparitytech:masterfrom
koushiro:replace-hashmap-core

Conversation

@koushiro
Copy link
Contributor

Signed-off-by: koushiro koushiro.cqx@gmail.com

related issue: #83

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
@parity-cla-bot
Copy link

It looks like @koushiro signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@codecov-io
Copy link

Codecov Report

Merging #84 into master will decrease coverage by 2.59%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #84     +/-   ##
=========================================
- Coverage   90.79%   88.19%   -2.6%     
=========================================
  Files          10       10             
  Lines        3390     2491    -899     
=========================================
- Hits         3078     2197    -881     
+ Misses        312      294     -18
Impacted Files Coverage Δ
src/lib.rs 84.14% <ø> (-1.98%) ⬇️
src/voter/voting_round.rs 77.88% <0%> (-6.03%) ⬇️
src/voter/mod.rs 83.02% <0%> (-4.62%) ⬇️
src/testing.rs 89.75% <0%> (-4.25%) ⬇️
src/bitfield.rs 81.13% <0%> (-2.42%) ⬇️
src/round.rs 93.64% <0%> (-1.36%) ⬇️
src/vote_graph.rs 96.95% <0%> (-1.31%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8dab9d4...caea3e4. Read the comment docs.

Copy link

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

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

lgtm

parity-scale-codec = { version = "1.0.3", optional = true, default-features = false, features = ["derive"] }
num = { package = "num-traits", version = "0.2", default-features = false }
hashmap_core = { version = "0.1.10", default-features = false }
hashbrown = { version = "0.6" }
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to compile with default-features = false. finality-grandpa is no-std compatible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hashbrown supports no_std by default.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I didn't know that. Thanks :)

@andresilva andresilva merged commit 455cdca into paritytech:master Aug 20, 2019
@andresilva
Copy link
Contributor

Thanks for the PR @koushiro! :)

@koushiro koushiro deleted the replace-hashmap-core branch August 20, 2019 15:09
@andresilva andresilva mentioned this pull request Oct 21, 2019
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.

5 participants