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

HashProto: Use fastssz when available #5218

Merged
merged 14 commits into from Mar 28, 2020
Merged

Conversation

prestonvanloon
Copy link
Member

Before

BenchmarkHashProto-8             1596458               829 ns/op             144 B/op          2 allocs/op

After (if the struct meets the interface)

BenchmarkHashProto-8             3118893               369 ns/op             296 B/op          4 allocs/op

@prestonvanloon prestonvanloon added the Ready For Review A pull request ready for code review label Mar 26, 2020
nisdas
nisdas previously approved these changes Mar 26, 2020
@prestonvanloon prestonvanloon changed the base branch from master to v0.11 March 26, 2020 06:55
@prestonvanloon prestonvanloon force-pushed the faster-hash-proto branch 2 times, most recently from ba82481 to 0e6b26b Compare March 26, 2020 07:00
@prestonvanloon
Copy link
Member Author

This needs to go into v0.11 because we use hashProto as a database key for some objects

@rauljordan
Copy link
Contributor

Looks like some tests fail @prestonvanloon

@prestonvanloon
Copy link
Member Author

Working on tests now. Some test input is invalid now against ssz types.

I'm thinking I want to merge this to master instead of v0.11.
Looking into using the db migration bucket to toggle this.

@prestonvanloon prestonvanloon dismissed nisdas’s stale review March 27, 2020 02:42

The base branch was changed.

@prestonvanloon prestonvanloon changed the base branch from v0.11 to master March 27, 2020 02:42
nisdas
nisdas previously approved these changes Mar 28, 2020
Co-Authored-By: terence tsao <terence@prysmaticlabs.com>
@codecov
Copy link

codecov bot commented Mar 28, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@6bc70e2). Click here to learn what that means.
The diff coverage is 60%.

@@            Coverage Diff            @@
##             master    #5218   +/-   ##
=========================================
  Coverage          ?   13.49%           
=========================================
  Files             ?       34           
  Lines             ?     3610           
  Branches          ?        0           
=========================================
  Hits              ?      487           
  Misses            ?     3042           
  Partials          ?       81

@prylabs-bulldozer prylabs-bulldozer bot merged commit a245461 into master Mar 28, 2020
@delete-merged-branch delete-merged-branch bot deleted the faster-hash-proto branch March 28, 2020 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants