Summary: Call is_airunit_refuel_point() only when needed
Submitted by: cazfi
Submitted on: Sat 01 Mar 2014 11:04:33 PM EET
Priority: 5 - Normal
Assigned to: None
Discussion Lock: Any
In patch #4563 I said:
"Profiling server running autogame shows checking if tile is refuel point as
one of the functions taking most time."
That is surprising also because the function should be needed for a couple of
unit types only. It's probably being called too much. All the callers should
first make the inexpensive checks like that unit is using fuel at all before
calling expensive is_airunit_refuel_point().
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list