Ticket #60 (closed task: fixed)

Opened 3 years ago

Last modified 3 years ago

Store XML Game Components with maps rather than lists

Reported by: knowknowledge Owned by:
Priority: minor Milestone: 0.3.0
Component: Source Version:
Keywords: xml,component Cc:

Description

The XML Game Component classes: Alliances, Engines, Models, Planets, Weapons.

All of these classes parse an xml file and generate a set of objects. They all use GetX() lookup functions, but the lookup does an O(n) search for the final object.

Changing the internal storage to a map rather than a list would speed up lookups. It would also make the external and internal interfaces match.

Change History

comment:1 Changed 3 years ago by knowknowledge

  • Status changed from new to closed
  • Resolution set to fixed

Fixed by creating the Component and Components virtual classes.

Note: See TracTickets for help on using tickets.