Skip to content

Pass the offset and length to Loader#bytesToName to avoid an extra copy#4047

Merged
eregon merged 1 commit into
ruby:mainfrom
eregon:bytesToName-with-offset-and-length
Mar 26, 2026
Merged

Pass the offset and length to Loader#bytesToName to avoid an extra copy#4047
eregon merged 1 commit into
ruby:mainfrom
eregon:bytesToName-with-offset-and-length

Conversation

@eregon

@eregon eregon commented Mar 26, 2026

Copy link
Copy Markdown
Member

Used in the last commit of truffleruby/truffleruby#4202

@kddnewton kddnewton left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me. @enebo / @headius?

@headius headius left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me. Only used internally for populating identifiers so should not have any impact on JRuby's use.

@eregon
eregon merged commit 40ca8a4 into ruby:main Mar 26, 2026
68 checks passed
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