Skip to content

Commit

Permalink
Revert "Revert "Reduce size of blockchan""
Browse files Browse the repository at this point in the history
This reverts commit 19d9717.
  • Loading branch information
Ibrahim Jarif committed Mar 5, 2020
1 parent d1b850f commit c6cd35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions table/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ func NewTableBuilder(opts Options) *Builder {
return b
}

b.blockChan = make(chan *bblock, 1000)
count := 2 * runtime.NumCPU()
b.blockChan = make(chan *bblock, count*2)

count := runtime.NumCPU()
b.wg.Add(count)
for i := 0; i < count; i++ {
go b.handleBlock()
Expand Down

0 comments on commit c6cd35f

Please sign in to comment.