Performance

- Made Table::optimize a public method.
- Table::optimize called only from handleReportGHistory, where it's
  needed.
- Retaining benchmark.txt, to allow further improvements.
This commit is contained in:
Paul Beckingham
2009-03-08 21:29:55 -04:00
parent 0362b41f3b
commit 3f418c6fdc
4 changed files with 67 additions and 7 deletions

View File

@@ -85,6 +85,7 @@ public:
int rowCount ();
int columnCount ();
const std::string render ();
void optimize (std::string&) const;
private:
std::string getCell (const int, const int);
@@ -101,7 +102,6 @@ private:
const std::string formatHeader (const int, const int, const int);
const std::string formatHeaderDashedUnderline (const int, const int, const int);
void formatCell (const int, const int, const int, const int, std::vector <std::string>&, std::string&);
void optimize (std::string&);
void sort (std::vector <int>&);
void clean (std::string&);