Incidencia #45067

cities_iterate() as hash_data_iterate()

Abrir Fecha: 2022-07-08 18:14 Última actualización: 2023-06-12 09:21

Informador:
Propietario:
(Ninguno)
Tipo:
Estado:
Open
Componente:
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Ninguno
Fichero:
Ninguno

Details

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
Comentario

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

Editar

Please login to add comment to this ticket » Entrar