[Freeciv-Dev] [patch #4563] Unit class refuel bases cache

2014-05-04 Thread Marko Lindqvist
Update of patch #4563 (project freeciv):

  Status:  Ready For Test => Done   
 Open/Closed:Open => Closed 


___

Reply to this item at:

  

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


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


[Freeciv-Dev] [patch #4563] Unit class refuel bases cache

2014-04-26 Thread Marko Lindqvist
Update of patch #4563 (project freeciv):

  Status:Done => Ready For Test 
 Open/Closed:  Closed => Open   
 Planned Release:2.5.0, 2.6.0 => 2.4.3, 2.5.0, 2.6.0

___

Follow-up Comment #3:

Port this, and later patch #4672, to S2_4.

___

Reply to this item at:

  

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


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


[Freeciv-Dev] [patch #4563] Unit class refuel bases cache

2014-03-15 Thread Marko Lindqvist
Update of patch #4563 (project freeciv):

  Status:  Ready For Test => Done   
 Assigned to:None => cazfi  
 Open/Closed:Open => Closed 


___

Reply to this item at:

  

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


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


[Freeciv-Dev] [patch #4563] Unit class refuel bases cache

2014-03-01 Thread Marko Lindqvist
URL:
  

 Summary: Unit class refuel bases cache
 Project: Freeciv
Submitted by: cazfi
Submitted on: Sat 01 Mar 2014 10:32:25 PM EET
Category: ai
Priority: 5 - Normal
  Status: Ready For Test
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any
 Planned Release: 2.5.0, 2.6.0

___

Details:

Profiling server running autogame shows checking if tile is refuel point as
one of the functions taking most time. That even in S2_5 where we iterate only
over base types to find refuel bases. I think TRUNK situation is worse as
there all the extras (including roads and specials) are being iterated over.

Attached patch adds cache created ruleset loading time listing extra types
that can act as refuel point for the unit class. Iterating over that list only
(typically 0-2 entries) should be much faster than always going through all
the extra types and also checking if they are sufficient (most of that too can
be skipped as we know that anything in cache is sufficient)



___

File Attachments:


---
Date: Sat 01 Mar 2014 10:32:25 PM EET  Name: RefuelBaseCache.patch  Size: 4kB 
 By: cazfi


---
Date: Sat 01 Mar 2014 10:32:25 PM EET  Name: RefuelBaseCache-S2_5.patch  Size:
5kB   By: cazfi



___

Reply to this item at:

  

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


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