-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow log parse performance improvement for splitByColon #54538
Comments
/assign @yibin87 |
/remove-label enhancement |
@yibin87: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/type bug |
/label affects-6.5 |
/severity major |
/label affects-8.1 |
/label affects-7.5 |
/label affects-7.1 |
/label affects-6.1 |
/remove-label may-affects-5.4 |
Enhancement
Do cpu profile for query like:
Find the splitByColon takes about 80% cpu times:
The implementation uses regexp to parse key: value strings:
tidb/pkg/executor/slow_query.go
Lines 526 to 531 in f158c65
However, in most cases, we can just go through the string, and take string before colon as key, string after colon as value, which seems can improve performance significantly.
The text was updated successfully, but these errors were encountered: