Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various micro optimizations #379

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Various micro optimizations #379

merged 1 commit into from
Nov 14, 2024

Conversation

casperisfine
Copy link

Nothing major, mostly use more direct APIs to bypass safety checks that we can assert aren't needed.

e.g. OBJ_FROZEN_RAW doesn't bother checking if the VALUE is an immediate, which we know it isn't because we know it's a T_STRING.

Or ENCODING_GET_INLINED doesn't check if we're dealing with an extended encoding, which in our case we don't need to know.

Nothing major, mostly use more direct APIs to bypass safety checks
that we can assert aren't needed.

e.g. `OBJ_FROZEN_RAW` doesn't bother checking if the VALUE is an
immediate, which we know it isn't because we know it's a T_STRING.

Or `ENCODING_GET_INLINED` doesn't check if we're dealing with an
extended encoding, which in our case we don't need to know.
@casperisfine
Copy link
Author

Hum, TruffleRuby crashed, I can't make much sense of the crash report though. (FYI @eregon)

@casperisfine
Copy link
Author

Alright, it passed on the retry, so I'm gonna assume it's unrelated. Logs are here: https://github.com/msgpack/msgpack-ruby/actions/runs/11837028381/job/32983173005

@byroot byroot merged commit a8fe3e4 into msgpack:master Nov 14, 2024
18 checks passed
@casperisfine casperisfine deleted the micro-opt branch November 14, 2024 12:47
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.

2 participants