pingcap / pingcap/tidb

Optimize memory allocation for point get

Open
#54,047 0 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

As the following figure shows, there are many memory allocations introduced by stmt summary, plan cache, exec info collecting, context resetting, etc. We need to reduce the runtime overhead by avoiding unnecessary memory alloctions.

![image](https://github.com/pingcap/tidb/assets/6850317/d935c1d1-2dc1-4c4a-bd43-a547e9b9aeac)

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.