URL:
<http://gna.org/patch/?5669>
Summary: tile_move_cost_ptrs() road handling optimization
Project: Freeciv
Submitted by: cazfi
Submitted on: Sun 04 Jan 2015 11:09:30 PM EET
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:
Avoid constructs like road_extra_get(extra_road_get(extra)) hidden in macro
calls and wrapper functions in tile_move_cost_ptrs() (function that with 4.30%
share of CPU time is number 5 in profiling results)
Add comment next to definitions of road_type_iterate() and base_type_iterate()
that they should be deprecated for reasons like these.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 04 Jan 2015 11:09:30 PM EET Name:
CostPtrsExtraRoadExtraOptimize.patch Size: 3kB By: cazfi
<http://gna.org/patch/download.php?file_id=23400>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?5669>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev