待辦事項 #45487

auto_arrange_workers(): Unnecessary cm_parameter copy

啟用日期: 2022-08-28 06:43 最後更新: 2022-10-15 10:52

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
1

細節

auto_arrange_workers() always uses local cm_parameter structure. Therefore it has to copy the parameter from pcity->cm_parameter to that local structure. AFAIK there's no reason not to use pcity->cm_parameter directly in the usual case, only creating a copy if we have to do local modifications.

Ticket History (3/4 Histories)

2022-08-28 06:43 Updated by: cazfi
  • New Ticket "auto_arrange_workers(): Unnecessary cm_parameter copy" created
2022-10-08 09:49 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
  • 里程碑 Update from (無) to 3.1.0 (closed)
2022-10-15 10:52 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入