tikv / tikv/pd

Imporve the preformance of `hot cache`

Open
#3,725 0 comments 0 reactions 0 assignees View on GitHub
help wanted type/enhancement
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Development Task
This simulator case has many hot regions:

Step 1:

[profile.zip](https://github.com/tikv/pd/files/6568342/profile.zip)

- [ ] Reduce the copy in `GetAll` with in `RegionStats` , may need limit the regions
![image](https://user-images.githubusercontent.com/6428910/120151813-4dcd3180-c21f-11eb-974f-97a7f8dd8ff5.png)
- [ ] Reduce the slice copy and sort in `statistics.(*HotPeerStat).GetLoad`
![image](https://user-images.githubusercontent.com/6428910/120152083-9dabf880-c21f-11eb-8c66-4896a087a9d7.png)

Step 2:
[profile2.zip](https://github.com/tikv/pd/files/6568347/profile2.zip)

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.