performance improvements to DateTimeParser and HTTP server

This commit is contained in:
Guenter Obiltschnig
2009-02-01 20:27:19 +00:00
parent 75ecce9cc4
commit 37dc590bdf
12 changed files with 78 additions and 31 deletions

View File

@@ -237,7 +237,9 @@ void HTTPCookie::setHttpOnly(bool flag)
std::string HTTPCookie::toString() const
{
std::string result(_name);
std::string result;
result.reserve(256);
result.append(_name);
result.append("=");
if (_version == 0)
{