URL:
<http://gna.org/patch/?5632>
Summary: Backport genhash optimizations to S2_5
Project: Freeciv
Submitted by: cazfi
Submitted on: Tue 30 Dec 2014 07:07:07 AM EET
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release:
_______________________________________________________
Details:
Ticket for discussing whether genhash rewrite should be backported to S2_5.
S2_5 is a stable branch, but also the gain from optimized genhash would be
great.
Profiling S2_5 autogame (listing everything taking at least 1%):
% cumulative self self total
time seconds seconds calls s/call s/call name
26.37 574.30 574.30 552940120 0.00 0.00 genhash_bucket_lookup
8.65 762.82 188.52 1144898883 0.00 0.00 pf_normal_map_iterate
6.81 911.19 148.37 19654945556 0.00 0.00 map_pos_to_tile
3.84 994.87 83.68 700333531 0.00 0.00 pf_jumbo_map_iterate
3.03 1060.97 66.10 13892495960 0.00 0.00 tile_city
2.63 1118.25 57.28 2775370713 0.00 0.00 is_native_to_class
2.36 1169.60 51.35 25909171889 0.00 0.00 genlist_head
2.31 1219.91 50.30 3369164944 0.00 0.00 is_req_active
1.82 1259.52 39.61 108066577 0.00 0.00 pf_fuel_map_iterate
1.75 1297.54 38.02 7438565256 0.00 0.00 tile_move_cost_ptrs
1.68 1334.06 36.53 1447039320 0.00 0.00
get_target_bonus_effects
1.49 1366.54 32.48 13245865246 0.00 0.00 genlist_link_data
1.42 1397.49 30.95 15452712520 0.00 0.00
is_native_tile_to_class
1.11 1421.73 24.24 131271196 0.00 0.00 invasion_funct
1.04 1444.36 22.63 4164188329 0.00 0.00 map_is_known_and_seen
1.02 1466.67 22.32 3837968041 0.00 0.00 is_city_center
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?5632>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev