Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Usewmemchr in stringlib ifsizeof(STRINGLIB_CHAR) == sizeof(wchar_t) #93033

Closed
Assignees
methane
Labels
@goldsteinn

Description

@goldsteinn

Feature or enhancement

(A clear and concise description of your proposal.)

memchr is currently used ifsizeof(STRINGLIB_CHAR) == sizeof(char) because it faster
than the standard C loops alternatives.

wmemchr has often roughly the same performance asmemchr and can be used
in the same way asmemchr to speedup some of the string functionsSTRINGLIB(find_char)
andSTRINGLIB(replace_1char_inplace) are the two easiest candidates.

Pitch

(Explain why this feature or enhancement should be implemented and how it would be used.
Add examples, if applicable.)

It would, in some instances, makewide_str.find(wide_str_of_len_one) faster.

Previous discussion

The idea was discussed a bit in#69009 but wasn't the main topic of the issue
or put into any patches.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp