Imporve the preformance of `hot cache`
Open
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

- [ ] Reduce the slice copy and sort in `statistics.(*HotPeerStat).GetLoad`

Step 2:
[profile2.zip](https://github.com/tikv/pd/files/6568347/profile2.zip)
Contributor guide
Assessment
This issue has not been assessed yet.