--------------------- PatchSet 8542 Date: 2006/08/23 14:36:54 Author: adri Branch: parserwork Tag: (none) Log: Comment out the http header stats calls; its spending a lot of time in these stat routines. Members: src/HttpHeader.c:1.23->1.23.4.1 Index: squid/src/HttpHeader.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/HttpHeader.c,v retrieving revision 1.23 retrieving revision 1.23.4.1 diff -u -r1.23 -r1.23.4.1 --- squid/src/HttpHeader.c 19 Jul 2006 17:52:42 -0000 1.23 +++ squid/src/HttpHeader.c 23 Aug 2006 14:36:54 -0000 1.23.4.1 @@ -1,6 +1,6 @@ /* - * $Id: HttpHeader.c,v 1.23 2006/07/19 17:52:42 squidadm Exp $ + * $Id: HttpHeader.c,v 1.23.4.1 2006/08/23 14:36:54 adri Exp $ * * DEBUG: section 55 HTTP Header * AUTHOR: Alex Rousskov @@ -343,8 +343,10 @@ * has been used. As a hack, just never count zero-sized header * arrays. */ +#if 0 if (0 != hdr->entries.count) statHistCount(&HttpHeaderStats[hdr->owner].hdrUCountDistr, hdr->entries.count); +#endif HttpHeaderStats[hdr->owner].destroyedCount++; HttpHeaderStats[hdr->owner].busyDestroyedCount += hdr->entries.count > 0; while ((e = httpHeaderGetEntry(hdr, &pos))) { @@ -353,7 +355,9 @@ debug(55, 0) ("httpHeaderClean BUG: entry[%d] is invalid (%d). Ignored.\n", (int) pos, e->id); } else { +#if 0 statHistCount(&HttpHeaderStats[hdr->owner].fieldTypeDistr, e->id); +#endif /* yes, this destroy() leaves us in an inconsistent state */ httpHeaderEntryDestroy(e); }