Erwan
- added some cache for function getCardByName. On my machine, this divides the running time of the test suite by almost 2 (now runs in 12 minutes instead of 21)
This commit is contained in:
@@ -125,6 +125,7 @@ public:
|
||||
int totalCards();
|
||||
int randomCardId();
|
||||
private:
|
||||
map<string, MTGCard *> mtgCardByNameCache;
|
||||
int processConfLine(string &s, MTGCard* card, CardPrimitive * primitive);
|
||||
bool addCardToCollection(MTGCard * card, int setId);
|
||||
CardPrimitive * addPrimitive(CardPrimitive * primitive, MTGCard * card = NULL);
|
||||
|
||||
Reference in New Issue
Block a user