txaty / go-merkletree

Go Merkle Tree. High performance, Supporting parallel run, OpenZeppelin sorting pairs.
https://pkg.go.dev/github.com/txaty/go-merkletree
MIT License
110 stars 17 forks source link

Performance improvement with goroutine pool. #10

Closed txaty closed 1 year ago

txaty commented 1 year ago

I implement a simple goroutine pool: gool (github.com/txaty/gool). Turns out it improves the parallel performance a lot compared to the previous implementation (without reuse of goroutines).

codecov[bot] commented 1 year ago

Codecov Report

Merging #10 (deb8101) into main (aa0fbdd) will increase coverage by 1.23%. The diff coverage is 93.23%.

@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
+ Coverage   85.74%   86.98%   +1.23%     
==========================================
  Files           1        1              
  Lines         421      438      +17     
==========================================
+ Hits          361      381      +20     
+ Misses         40       38       -2     
+ Partials       20       19       -1     
Impacted Files Coverage Δ
merkle_tree.go 86.98% <93.23%> (+1.23%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more