Follow-up Comment #13, patch #7667 (project freeciv):

It's ok to left it to later ticket, but as this is quite performance critical
code, I'd want to see this kind of code:

mapview_layer_iterate(each_layer_in_turn) {
  if (tileset_layer_in_category(each_layer_in_turn, cat)) {

to be replaced with cached list of layers in each cat:

mapview_category_layer_iterate(cat, layer_of_cat) {


See extra_type_by_cause_iterate() implementation for reference.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?7667>

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


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

Reply via email to