プロジェクト

全般

プロフィール

Vote #80225

完了

Speed up workflow edit page rendering

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Performance_53
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
53
version_id:
127
issue_org_id:
31855
author_id:
3866
assigned_to_id:
332
comments:
4
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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.


journals

Here is the patch.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Setting the target version to 4.1.0.
--------------------------------------------------------------------------------
Committed the patch. It improves the rendering speed significantly. Thanks!
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリPerformance_53 にセット
  • 対象バージョン4.1.0_127 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0