Incidencia #46487

actions.c: Reduce repetitive action_id_get_target_kind() use

Abrir Fecha: 2023-01-08 15:33 Última actualización: 2023-01-18 04:01

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
2

Details

Looking at S3_0. Not sure (not looked in details) if compiler has any chance to deduct that action_id_get_target_kind() calls can be skipped (no side-effects, always returns the same target kind for the same action id), but likely not. This causes at least function call overhead, and may hinder optimization pass in general.

E.g. action in the beginning of is_action_possible() calls action_id_get_target_kind(wanted_action) five times, and more follow in non-assert code.

Ticket History (3/5 Histories)

2023-01-08 15:33 Updated by: cazfi
  • New Ticket "actions.c: Reduce repetitive action_id_get_target_kind() use" created
2023-01-11 09:18 Updated by: cazfi
  • Propietario Update from (Ninguno) to cazfi
  • Resolución Update from Ninguno to Accepted
  • Hito Update from (Ninguno) to 3.0.6 (cerrado)
2023-01-18 04:01 Updated by: cazfi
  • Estado Update from Open to Cerrado
  • Resolución Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Entrar