URL:
<http://gna.org/patch/?4702>
Summary: Reduce the number of calls to priority queue
functions
Project: Freeciv
Submitted by: pepeto
Submitted on: Sun 18 May 2014 11:15:32 PM CEST
Category: general
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: pepeto
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.6.0
_______________________________________________________
Details:
Try to prefer pq_replace() to reduce the much calls to pq_remove(). After the
patch applied, the tiles index should be only listed once.
Note that it can modify autogames because the order in the priority queue
could be slightly different (for paths of same cost).
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 18 May 2014 11:15:32 PM CEST Name: pf_pq_replace.patch Size: 10kB
By: pepeto
<http://gna.org/patch/download.php?file_id=20761>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?4702>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev