Skip to content

Conversation

@Earlopain
Copy link
Collaborator

With the benchmark from 2ea8139 Prism is:

  • 1.33x slower before
  • 1.07x slower after

Copy link
Member

@eregon eregon left a comment

Choose a reason for hiding this comment

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

Smart, sorting by byte offset is even faster and converting line to byte offset is just an Array#[] :)

With the benchmark from ruby@2ea8139
Prism is:
* 1.33x slower before
* 1.07x slower after
@Earlopain Earlopain force-pushed the ripper-translator-optimize-sort branch from ddec3a7 to a18b0ac Compare January 25, 2026 20:33
@eregon eregon merged commit 0e1c05c into ruby:main Jan 25, 2026
66 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.

2 participants