待辦事項 #45067

cities_iterate() as hash_data_iterate()

啟用日期: 2022-07-08 18:14 最後更新: 2023-06-12 09:21

回報者:
負責人:
(無)
類型:
狀態:
開啟
元件:
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
檔案:

細節

Currently cities_iterate() is implemented as iteration of player's city list inside iteration of players.

It's likely that hash_data_iterate() from the cities hash would have better performance. Should at least measure it (and then document the result, so we know in the future that it has been already done)

Ticket History (2/2 Histories)

2022-07-08 18:14 Updated by: cazfi
  • New Ticket "cities_iterate() as hash_data_iterate()" created
2023-06-12 09:21 Updated by: cazfi
評語

Not sure if this would retain game reproducibility, i.e., does hash_data_iterate() go through entries in the same order, e.g., after save/server restart/load.

Attachment File List

No attachments

編輯

Please login to add comment to this ticket » 登入