[Freeciv-tickets] [freeciv] #46273: Introduce counter-shares-index to reduce CPU/memory usage

アーカイブの一覧に戻る
OSDN Ticket System norep****@osdn*****
Thu Dec 15 01:20:58 JST 2022


#46273: Introduce counter-shares-index to reduce CPU/memory usage

  Open Date: 2022-12-15 01:19
Last Update: 2022-12-15 01:20

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/46273
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46273

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-12-15 01:20 Updated by: lachu
 * Severity Update from 5 - Medium to 1 - Lowest


---------------------------------------------------------------------
Ticket Status:

      Reporter: lachu
         Owner: cazfi
          Type: Feature Requests
        Status: Open [Owner assigned]
      Priority: 1 - Lowest
     MileStone: (None)
     Component: General
      Severity: 1 - Lowest
    Resolution: None
---------------------------------------------------------------------

Ticket details:

Currently, server will process each counter of the same type, but that do not make sense for some kind of counter (owned, celebrating, disorder).
This change seems to skip currently processed counter by sharing index.
It also modify iterators to check index is smaller than excepted and do not process counter if so. If index is excepted, then we increase excepted value of index and process counter. By this little modifications, each kind of counters will be processed only once. To avoid this, simply change function returns if each counter of this type should share index.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/46273
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46273



More information about the Freeciv-tickets mailing list
アーカイブの一覧に戻る