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

[stdlib] Micro-optimize utf8 helper functions #3896

Open
wants to merge 4 commits into
base: nightly
Choose a base branch
from

Conversation

martinvuyk
Copy link
Contributor

Micro-optimize utf8 helper functions

@martinvuyk martinvuyk requested a review from a team as a code owner December 18, 2024 15:25


fn _shift_unicode_to_utf8(ptr: UnsafePointer[UInt8], c: Int, num_bytes: Int):
fn _shift_unicode_to_utf8[
optimize_ascii: Bool = True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add explanation for this parameter in the docstring?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants