URL:
  <http://gna.org/patch/?4678>

                 Summary: tile_index() as macro
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Tue 29 Apr 2014 03:12:42 AM EEST
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.4.3, 2.5.0, 2.6.0

    _______________________________________________________

Details:

Replace tile_index() function calls with a macro. As it's one of the most
often called functions, avoiding its function call overhead has significant
(but not huge, like with some earlier optimization patches) impact on
performance.

Interestingly the function itself was already surronded by "#ifndef
tile_index" ... "#endif" to check that it's not implemented as macro.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 29 Apr 2014 03:12:42 AM EEST  Name: TileIndexMacro.patch  Size: 386B
  By: cazfi

<http://gna.org/patch/download.php?file_id=20613>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?4678>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to