Skip to content
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

Add utf8_length in String class #99893

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kiroxas
Copy link
Contributor

@kiroxas kiroxas commented Dec 1, 2024

Added utf8_length in String class to avoid creating a temporary generating memory allocations, when all we need is the length.

Updated code that had such a pattern to use the new function.

Came from a discussion in 99834

@kiroxas kiroxas requested review from a team as code owners December 1, 2024 10:15
@kiroxas kiroxas force-pushed the avoidUTF8ParsingWhenNotNecessary branch from cd4522f to 86a4041 Compare December 1, 2024 10:17
@AThousandShips AThousandShips added this to the 4.x milestone Dec 1, 2024
@AThousandShips AThousandShips changed the title Added utf8_length in String class Add utf8_length in String class Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants