Project

General

Profile

Actions

Bug #21971

closed

Backport commit 5de4cc560864 / PR #15848

Bug #21971: Backport commit 5de4cc560864 / PR #15848

Added by mackuba (Kuba Suder) 2 days ago. Updated about 17 hours ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 4.0.2 (2026-03-17 revision d3da9fec82) +PRISM [arm64-darwin24]
[ruby-core:125154]

Description

Follow-up to ticket: https://bugs.ruby-lang.org/issues/21824

There was a group of old commits merged before 4.0 which were meant to improve regexp performance in some cases. Unfortunately, they also greatly degraded regexp performance in some other cases. This was released in version 4.0.0, where I noticed it when testing the performance of the final version in my app, and reported it as 21824.

Chris HasiƄski has fixed this on the master branch in commit 5de4cc56086493689701e86aa0ccf6a4a4a87d75, however this wasn't released as a bugfix with Ruby 4.0.1 & 4.0.2. It would be great if this could be backported to the ruby_4_0 branch and included in the 4.0.3 bugfix release.

Updated by mackuba (Kuba Suder) 2 days ago Actions #1 [ruby-core:125155]

More details by Chris in the pull request: https://github.com/ruby/ruby/pull/15848

Updated by byroot (Jean Boussier) 2 days ago Actions #2

  • Backport changed from 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN to 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONTNEED, 4.0: REQUIRED

Updated by byroot (Jean Boussier) about 17 hours ago Actions #3 [ruby-core:125177]

  • Status changed from Open to Closed

Forgot to close

Actions

Also available in: PDF Atom