任务单 #46487

actions.c: Reduce repetitive action_id_get_target_kind() use

开放日期: 2023-01-08 15:33 最后更新: 2023-01-18 04:01

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
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.

任务单历史 (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
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
  • 里程碑 Update from (无) to 3.0.6 (关闭)
2023-01-18 04:01 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名