Project

General

Profile

Actions

Patch #31855

closed

Speed up workflow edit page rendering

Added by Felix Schäfer over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Currently the list of WorkflowTransitions workflows is scanned twice (#detect in app/views/workflows/_form.html.erb, select in app/helpers/workflows_helper.rb) for each possible Status pair shown on the workflow edit page (the number of status pairs is itself quadratic with the number of statuses). This leads to the rendering time for this page to be quadratic with the number of Status pairs.

The patch provided in the next update calculates all required data only once for the page instead of once for each Status pair. In a test with 90 issue statuses in development mode on a laptop the total rendering time for the workflow edit page was changed from ~103 seconds before the patch to ~2,5s with the patch.


Files

31855.patch (1.79 KB) 31855.patch Felix Schäfer, 2019-08-06 22:03
Actions

Also available in: Atom PDF