Skip to content

Remove libs/common/word.go#2431

Merged
xla merged 1 commit intodevelopfrom
dev/remove_cmn_word
Sep 19, 2018
Merged

Remove libs/common/word.go#2431
xla merged 1 commit intodevelopfrom
dev/remove_cmn_word

Conversation

@ValarDragon
Copy link
Contributor

@ValarDragon ValarDragon commented Sep 18, 2018

We didn't use this code anywhere in the codebase. As such, we probably
should reduce the surface area we support. In the event that we do
in fact require 256 bit words inside of tendermint, we should adapt
the stdlibs' internal word representations, which also handles SIMD.

Inside of the SDK, a separate solution for big ints / larger words
is employed, which uses big ints. This in turn does utilize the stdlibs
SIMD support. (Albeit in a less space efficient manner)

  • Updated all relevant documentation in docs - didn't appear in docs
  • Updated all code comments where relevant - deleting code
  • Wrote tests - deleting code
  • Updated CHANGELOG_PENDING.md

We didn't use this code anywhere in the codebase. As such, we probably
should reduce the surface area we support. In the event that we do
in fact require 256 bit words inside of tendermint, we should adapt
the stdlibs' internal word representations, which also handles SIMD.

Inside of the SDK, a separate solution for big ints / larger words
is employed, which uses big ints. This in turn does utilize the stdlibs
SIMD support.
@codecov-io
Copy link

Codecov Report

Merging #2431 into develop will decrease coverage by 0.1%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #2431      +/-   ##
===========================================
- Coverage    61.28%   61.18%   -0.11%     
===========================================
  Files          198      196       -2     
  Lines        16383    16265     -118     
===========================================
- Hits         10040     9951      -89     
+ Misses        5508     5449      -59     
- Partials       835      865      +30
Impacted Files Coverage Δ
p2p/node_info.go 45.61% <0%> (-6.34%) ⬇️
libs/autofile/autofile.go 69.69% <0%> (-4.96%) ⬇️
p2p/test_util.go 56.47% <0%> (-4.14%) ⬇️
p2p/switch.go 50.5% <0%> (-1.67%) ⬇️
p2p/peer.go 57.95% <0%> (-0.7%) ⬇️
consensus/metrics.go 18.18% <0%> (-0.24%) ⬇️
rpc/core/net.go 0% <0%> (ø) ⬆️
libs/db/types.go 100% <0%> (ø) ⬆️
cmd/tendermint/commands/init.go 0% <0%> (ø) ⬆️
tools/tm-bench/main.go 0% <0%> (ø) ⬆️
... and 27 more

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

🥇 🏎 🍰

@xla xla merged commit c0cdb9d into develop Sep 19, 2018
@xla xla deleted the dev/remove_cmn_word branch September 19, 2018 13:38
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.

4 participants