Skip to content

Feature: Faster handling of int arrays#433

Open
SamSaffron wants to merge 2 commits into
mainfrom
fast-ints
Open

Feature: Faster handling of int arrays#433
SamSaffron wants to merge 2 commits into
mainfrom
fast-ints

Conversation

@SamSaffron

@SamSaffron SamSaffron commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

New numbers post PR are:

Default platform is now faster than v0.21.0 for these rows:

callback/1000_echo_int v0.21.0 3.278 ms working 2.449 ms
callback/1000_add_ints v0.21.0 3.845 ms working 2.567 ms

not sure if it is worth the complexity or not so will sit on it

Add a compact JS/Ruby callback protocol for int32 arguments and Fixnum int32 results to avoid serializer overhead in the common integer case.

Fall back to the existing serializer for unsupported args, returns, or arity, and cover fallback, exceptions, nested calls, and minus-zero behavior.
@SamSaffron SamSaffron changed the title fast ints Feature: Faster handling of int arrays Jun 24, 2026
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