Skip to content

Conversation

@simonklee
Copy link
Contributor

Refactored findWrapBreaks to remove data dependencies. The old implementation chained @select calls serially. The new one uses bitwise ORs on boolean vectors, allowing the CPU to check all character classes (whitespace, punctuation, brackets) in parallel instructions.

Refactored `findWrapBreaks` to remove data dependencies. The
old implementation chained `@select` calls serially. The new one
uses bitwise ORs on boolean vectors, allowing the CPU to check all
character classes (whitespace, punctuation, brackets) in parallel
instructions.
@simonklee simonklee force-pushed the perf-utf8-simd-parallel branch from 7093376 to a002273 Compare January 9, 2026 21:32
@kommander
Copy link
Collaborator

I assume you've run your local bench comparison. Would be awesome to get that into the pipeline.

@kommander kommander merged commit 1ef2fae into anomalyco:main Jan 11, 2026
4 checks passed
@simonklee
Copy link
Contributor Author

I assume you've run your local bench comparison. Would be awesome to get that into the pipeline.

Yeh, sorry. I forgot to add it to the PR description. I didn't really find this one in a benchmark, it just caught my eye when going through adjacent code for #506

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