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

                 Summary: map_pos_to_tile() optimizations
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Mon 28 Sep 2015 07:20:27 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.6.0, 3.0.0

    _______________________________________________________

Details:

The second most time consuming function deserves even this kind of manual
optimizations:

- Avoid duplicate coordinate legality check in base_native_pos_to_tile() by
introducing new native_pos_to_index_nocheck() macro
- Rewritten MAP_IS_ISOMETRIC() (compiler SHOULD have been able to do this
already, but now we make sure it happens)
- Avoid moving values between multiple variables (registers in generated
machine code) where one is enough (compiler SHOULD have been able to do this
already, but now we make sure it happens)




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 28 Sep 2015 07:20:28 AM EEST  Name: MapPosToTileOptimize.patch 
Size: 2kB   By: cazfi

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

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to