use goroutine pool to copr.(*copIteratorWorker).run
Open
affects-7.5
sig/transaction
type/enhancement
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
github.com/pingcap/tidb/pkg/store/copr.(*copIteratorWorker).run will always do the ```runtime.newstack``` and it will take many time on it. so we can use goroutine pool to resolve it.
https://flamegraph.com/share/7adb104e-02f1-11ef-a542-36adf59c1176
Contributor guide
Assessment
This issue has not been assessed yet.