Actions
Defect #43737
closedRendering wiki is significantly slow on Ruby 4.0.1
Defect #43737:
Rendering wiki is significantly slow on Ruby 4.0.1
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Resolution:
Fixed
Affected version:
Description
On Ruby 4.0.1, rendering wiki via Redmine::WikiFormatting.to_html is significantly slower than on Ruby 3.4.
The benchmarks below suggest:
- wiki rendering is consistently slower on Ruby 4.0.1
- the impact is larger for CommonMark
- the slowdown is more pronounced when the input includes a table and a code block
- performance regresses further after the #43643 related commits
CommonMark¶
After #43643¶
Ruby 4.0.1:
Ruby 3.4.7:
Before #43643¶
Ruby 4.0.1
Ruby 3.4.7
Textile¶
After #43643¶
Ruby 4.0.1:
Ruby 3.4.7:
Before #43643¶
Ruby 4.0.1
Ruby 3.4.7
Environment¶
- Ruby 4.0.1 vs Ruby 3.4.7 (same Gemfile.lock)
- commonmarker 2.6.3
- loofah 2.25.0
- rouge 4.7.0
Files
Actions