Skip to content

Conversation

@ottomated
Copy link
Contributor

Saw this tweet and wanted to pitch in. This speeds up the segment function from ~1.2x to ~1.5x, at the cost of some readability.

Benchmark is below. Could use some larger or smaller test cases!
image

@ottomated
Copy link
Contributor Author

#13393 also defines some char code constants - these should probably be moved out to a common file

@thecrypticace thecrypticace merged commit 5db92a4 into tailwindlabs:next Apr 2, 2024
@thecrypticace
Copy link
Contributor

Thanks! 💯

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.

3 participants