pingcap / pingcap/tidb

Optimize NewPlanCacheKey

Open
#59,801 3 comments 1 reaction 1 assignee Claimed by @qw4990 View on GitHub
epic/plan-cache sig/planner type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
According to the CPU profile of a point-select benchmark:

![Image](https://github.com/user-attachments/assets/18b8c563-c345-4a5e-ab13-e1fbb2ac4cde)

![Image](https://github.com/user-attachments/assets/3866ad43-25e1-45d9-855a-c68850ec7cc1)

`NewPlanCacheKey` takes more time than expected. Optimizing it can benefit fast tasks like point-select.

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.