Skip to content

Commit ea4b356

Browse files
authored
Merge pull request #2936 from ruby/fix-regexp
Ruby 3.2.0 is out now. Removed for preview user sentence
2 parents 9c90e9f + bd145ba commit ea4b356

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

en/news/_posts/2022-12-25-ruby-3-2-0-released.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Since Ruby 3.2, Regexp's matching algorithm has been greatly improved by using a
9393

9494
The improved matching algorithm allows most Regexp matching (about 90% in our experiments) to be completed in linear time.
9595

96-
(For preview users: this optimization may consume memory proportional to the input length for each match. We expect no practical problems to arise because this memory allocation is usually delayed, and a normal Regexp match should consume at most 10 times as much memory as the input length. If you run out of memory when matching Regexps in a real-world application, please report it.)
96+
This optimization may consume memory proportional to the input length for each match. We expect no practical problems to arise because this memory allocation is usually delayed, and a normal Regexp match should consume at most 10 times as much memory as the input length. If you run out of memory when matching Regexps in a real-world application, please report it.
9797

9898
The original proposal is <https://bugs.ruby-lang.org/issues/19104>
9999

ja/news/_posts/2022-12-25-ruby-3-2-0-released.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Ruby 3.2から、Regexpのマッチングアルゴリズム自体がメモ化の
8888

8989
このアルゴリズムの改善で、ほとんどの(我々の実験では90%程度の)正規表現が線形時間でマッチ判定できるようになります。
9090

91-
(プレビューリリースのユーザへ:この最適化は、マッチングのたびに入力長に比例したメモリを消費することがあります。このメモリ確保は通常遅延され、また、通常の正規表現であれば入力長のたかだか10倍程度のメモリを消費するだけなので、実用上の問題は発生しないと考えています。もし実アプリの正規表現マッチングでメモリ不足に陥った場合は報告してください
91+
この最適化は、マッチングのたびに入力長に比例したメモリを消費することがあります。このメモリ確保は通常遅延され、また、通常の正規表現であれば入力長のたかだか10倍程度のメモリを消費するだけなので、実用上の問題は発生しないと考えています。もし実アプリの正規表現マッチングでメモリ不足に陥った場合は報告してください
9292

9393
提案チケットは <https://bugs.ruby-lang.org/issues/19104> です。
9494

0 commit comments

Comments
 (0)