* Performance improvement for the deck editor when scrolling cards
  (transform 2*N*log(N)<Cmp1> + N*<read> into log(N)<Cmp1> +
  N*<read>). I expect this improvement to be much more significant,
  performance-wise, than last night's one.
This commit is contained in:
jean.chalard
2009-06-05 01:58:41 +00:00
parent c822b245c1
commit 01bd44025d
5 changed files with 21 additions and 25 deletions

View File

@@ -27,7 +27,6 @@ class DeckDataWrapper{
int colors[Constants::MTG_NB_COLORS+1];
int currentColor;
map<MTGCard *, int,Cmp1> cards;
int currentposition;
MTGDeck * parent;
DeckDataWrapper(MTGDeck * deck);
@@ -38,7 +37,6 @@ class DeckDataWrapper{
MTGCard * getNext(MTGCard * previous = NULL, int color = -1);
MTGCard * getPrevious(MTGCard * next = NULL, int color = -1);
void updateCounts(MTGCard * card = NULL, int removed = 0);
void updateCurrentPosition(MTGCard * currentCard,int color = -1);
int getCount(int color = -1);
int totalPrice();
void save();