Project

General

Profile

Actions

Defect #43446

open

CommonMark rendering became significantly slower after #42737

Added by Katsuya HIDAKA 1 day ago. Updated about 20 hours ago.

Status:
New
Priority:
Normal
Category:
Performance
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

After applying the changes from #42737, CommonMark rendering (issue descriptions, comments, wiki, etc.) has become much slower. Measuring before and after that change shows a slowdown of about 6x.

Since CommonMark rendering is used frequently across Redmine, this regression affects the overall responsiveness of the application.

Benchmark results

Revision Avg per render
r24093 (before #42737) 23.90 ms
r24097 (after #42737) 148.99 ms

Benchmark script

bin/rails r commonmark_bench.rb

commonmark_bench.rb


Files

0001-Fix-performance-issue.patch (4.31 KB) 0001-Fix-performance-issue.patch Takashi Kato, 2025-11-07 16:36
Actions

Also available in: Atom PDF