-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of
trim
for string view (10%) (#12395)
* draft. * add unit tests for xTrim. * fix fmt. * tmp copy for ci. * move `make_and_append_view` to common. * fix sting view trim about the process of empty string. * fix compile. * eliminate some repeated codes. * add sql test case about string view trim. * remove unused imports. * fix tests. * remove stale file. * Avoid unecessary unsafe * add unit test cases with a unlined string view output. * fix tests. * improve comments. * add todo and the related issue. * use the safe way to get `start_offset` after trimming. * fix comments. * Remove redundant test --------- Co-authored-by: Andrew Lamb <[email protected]>
- Loading branch information
Showing
6 changed files
with
605 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.