Ticket #46487

actions.c: Reduce repetitive action_id_get_target_kind() use

Eröffnet am: 2023-01-08 15:33 Letztes Update: 2023-01-18 04:01

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
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-Verlauf (3/5 Historien)

2023-01-08 15:33 Aktualisiert von: cazfi
  • New Ticket "actions.c: Reduce repetitive action_id_get_target_kind() use" created
2023-01-11 09:18 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
  • Meilenstein Update from (Keine) to 3.0.6 (closed)
2023-01-18 04:01 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

Please login to add comment to this ticket » Anmelden