pingcap / tiflash

The analytical engine for TiDB and TiDB Cloud. Try free: https://tidbcloud.com/free-trial
https://docs.pingcap.com/tidb/stable/tiflash-overview
Apache License 2.0
944 stars 410 forks source link

Improve the performance of `length` and `ascii` functions (#9345) #9398

Closed ti-chi-bot closed 4 weeks ago

ti-chi-bot commented 1 month ago

This is an automated cherry-pick of #9345

What problem does this PR solve?

Issue Number: close #9344

Problem Summary:

What is changed and how it works?

Benchmark from bench_function_string.cpp

           origin         optimized
length    19794917 ns    1824123 ns 985.2%
ascii     20572895 ns    2592171 ns 693.7%

Check List

Tests

Side effects

Documentation

Release note

None
ti-chi-bot[bot] commented 1 month ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/pingcap/tiflash/blob/release-5.4/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
xzhangxian1008 commented 1 month ago

/rebuild

xzhangxian1008 commented 1 month ago

/run-all-tests

xzhangxian1008 commented 4 weeks ago

/run-all-tests

xzhangxian1008 commented 4 weeks ago

/run-unit-test

xzhangxian1008 commented 4 weeks ago

/run-all-tests

xzhangxian1008 commented 4 weeks ago

/run-unit-test

xzhangxian1008 commented 4 weeks ago

/run-all-tests

xzhangxian1008 commented 4 weeks ago

/run-unit-test

xzhangxian1008 commented 4 weeks ago

/run-unit-test

xzhangxian1008 commented 4 weeks ago

/run-all-tests

xzhangxian1008 commented 4 weeks ago

/close

ti-chi-bot[bot] commented 4 weeks ago

@xzhangxian1008: Closed this PR.

In response to [this](https://github.com/pingcap/tiflash/pull/9398#issuecomment-2334130223): >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.