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
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.

1 participant