[Freeciv-tickets] [freeciv] #44611: Optimize some heavy MAX() and MIN() uses

アーカイブの一覧に戻る
OSDN Ticket System norep****@osdn*****
Sun May 15 15:02:31 JST 2022


#44611: Optimize some heavy MAX() and MIN() uses

  Open Date: 2022-05-15 09:02
Last Update: 2022-05-15 09:02

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/44611
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44611

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-05-15 09:02 Updated by: cazfi
 * New Ticket "Optimize some heavy MAX() and MIN() uses" created


---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Patches
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

We have some MAX() and MIN() uses where one of the parameters is relatively heavy to evaluate AND such that the compiler cannot optimize away the need to do the full evaluation twice (a function call of which compiler does not know that it will return the same value both times, and has no side-effects)
Move such heavy evaluations outside the macros, to do them only once.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/44611
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44611



More information about the Freeciv-tickets mailing list
アーカイブの一覧に戻る