Skip to content

Conversation

@SwayamInSync
Copy link
Member

Similar implementation to #225 (only endianness does not apply here)

@seberg
Copy link
Member

seberg commented Nov 20, 2025

I do wonder if it makes sense to template this. Even the aligned/unaligned could possibly be templated with a tiny memcpy no-op or assignment helper (assuming the compiler will optimize things away)?

(It's just 4 times almost the same code, I guess? And even if you take care of some unicode shenanigans -- such as proper unicode whitespace check -- honestly, I don't think it matters speed wise to just use the unicode check also for bytes.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants