Performance

- Found some inefficient string initialization in Table.cpp, report.cpp,
  and in switching over to using more std::string capabilities, realized
  a 25% boost in Table::render speed.
- Eliminated Table::suppressWS.
- Eliminated Table::clean.
This commit is contained in:
Paul Beckingham
2010-07-06 01:37:35 -04:00
parent 25db00e97d
commit ad9c89b9fb
3 changed files with 41 additions and 147 deletions

View File

@@ -82,7 +82,6 @@ public:
void addCell (int, int, double);
void setCellColor (int, int, const Color&);
void suppressWS ();
void setDateFormat (const std::string&);
void setReportName (const std::string&);
@@ -103,7 +102,6 @@ private:
const std::string formatHeaderDashedUnderline (const int, const int, const int);
void formatCell (const int, const int, const int, const int, const int, std::vector <std::string>&, std::string&);
void sort (std::vector <int>&);
void clean (std::string&);
private:
std::vector <std::string> mColumns;
@@ -131,7 +129,6 @@ private:
std::map <int, order> mSortOrder;
// Misc...
bool mSuppressWS;
std::string mDateFormat;
std::string mReportName;
};