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

introduce swar routines for capitalization #2742

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Sep 18, 2024

Improved the performance of toUpper and toLower functionality by introducing SWAR routines.

@anonrig anonrig requested review from a team as code owners September 18, 2024 20:34
Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

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

Might be good to migrate these into kj

src/workerd/api/util.c++ Outdated Show resolved Hide resolved
@anonrig anonrig force-pushed the yagiz/introduce-swar-routines branch from b9b8a6f to c934972 Compare September 19, 2024 17:01
@anonrig anonrig merged commit b6a8de7 into main Sep 19, 2024
13 checks passed
@anonrig anonrig deleted the yagiz/introduce-swar-routines branch September 19, 2024 17:27
@vicb
Copy link

vicb commented Sep 19, 2024

I guess the reason to repeat the same code twice (excluding the 2 boundaries) is perf?

@vicb
Copy link

vicb commented Sep 19, 2024

Also the one thing I don't get is how overflow is not a problem?

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.

5 participants