#47960: Cache valid_advance_by_number() Open Date: 2023-04-27 23:44 Last Update: 2023-11-10 07:47 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/47960 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47960 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-11-10 07:47 Updated by: cazfi * Milestone Update from 3.0.9 to 3.0.10 --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Patches Status: Open Priority: 5 - Medium MileStone: 3.0.10 Component: General Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: On #47959: "Analyzer just doesn't know that on each iteration valid_advance_by_number() will filter exactly same techs out" Thinking a bit more; why we then constantly use valid_advance_by_number() as we (humans) know the result. Seems like something we should be caching at ruleset load time. -- 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/47960 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47960