Skip to content

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jan 9, 2026

These are similar to the ones we have for BytesWriter. These are a bit faster that the old primitive in typical cases (based on a microbenchmark), but in an ideal scenario these allow vectorization by the C compiler and something like 10x performance improvement.

I don't remove the old primitive yet, since it's used in some places which can't currently use the specializer. I'll look at running the specializer in more contexts as a follow-up PR. This PR should cover some of the most common use cases.

Also refactor to share some code with BytesWriter specialization.

@JukkaL JukkaL merged commit 4912d77 into master Jan 9, 2026
16 checks passed
@JukkaL JukkaL deleted the bytes-get-item branch January 9, 2026 16:12
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