pingcap / pingcap/tidb

use goroutine pool to copr.(*copIteratorWorker).run

Open
#52,887 1 comment 0 reactions 0 assignees View on GitHub
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

image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.