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) #9400

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
xzhangxian1008 commented 1 month ago

/retest

xzhangxian1008 commented 1 month ago

/run-all-tests

JaySon-Huang commented 1 month ago

/run-all-tests

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: windtalker, yibin87

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

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/pingcap/tiflash/blob/release-6.5/OWNERS)~~ [windtalker,yibin87] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
ti-chi-bot[bot] commented 4 weeks ago

[LGTM Timeline notifier]

Timeline: