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

Multicore AddPiece CommP #5320

Merged
merged 2 commits into from
Jan 12, 2021
Merged

Multicore AddPiece CommP #5320

merged 2 commits into from
Jan 12, 2021

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Jan 10, 2021

Before: BenchmarkAddPiece512M-32 1 7034478758 ns/op 75.72 MB/s

After: BenchmarkAddPiece512M-32 2 916931366 ns/op 580.93 MB/s
(on AMD TR2950X)

@Kubuxu
Copy link
Contributor

Kubuxu commented Jan 11, 2021

Are you 100% that pieces can be combined and the resulting CID will be the same? Do we have tests for this?

@magik6k
Copy link
Contributor Author

magik6k commented Jan 11, 2021

Are you 100% that pieces can be combined and the resulting CID will be the same? Do we have tests for this?

Yep, It's a simple binary tree under the hood. (The CID in TestAddPiece512M was generated in a single call. Also, we are already doing this chunking on master, this is just making things run in parallel)

@magik6k magik6k force-pushed the feat/multicore-addpiece branch from 524042f to 5462ecf Compare January 11, 2021 15:44
Copy link
Contributor

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

i neeed CPUz!!!!!

@magik6k
Copy link
Contributor Author

magik6k commented Jan 12, 2021

(tested manually on my miner, works, and it's really fast there too)

@magik6k magik6k merged commit 5627775 into master Jan 12, 2021
@magik6k magik6k deleted the feat/multicore-addpiece branch January 12, 2021 09:25
@shaodan
Copy link
Contributor

shaodan commented Jan 12, 2021

@magik6k Should we change resource that addpiece needs in sector-storage/resources.go

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