待辦事項 #48293

Narrower data type for diplstate has_reason_to_cancel

啟用日期: 2023-06-26 07:20 最後更新: 2023-07-01 07:38

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

細節

diplstate has_reason_to_cancel ever takes only values 0, 1, or 2. Yet it uses width of an entire int.

Size diplstate of diplstate structure is critical one with high number of players, as the number of structures in memory grow exponentially.

Ticket History (3/4 Histories)

2023-06-26 07:20 Updated by: cazfi
  • New Ticket "Narrower data type for diplstate has_reason_to_cancel" created
2023-06-26 07:55 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
2023-07-01 07:38 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

Attachment File List

編輯

Please login to add comment to this ticket » 登入