apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <bp...@pacbell.net>
Subject [PATCH] table speedups, updated
Date Fri, 23 Nov 2001 19:51:08 GMT
This is a repost of my patch to speed up tables, with one change from
the previous version: the technique used to compute the checksums was
unsafe on SPARCs (doing *(int *)str where 'str' is a char* yields a
bus error if the string doesn't start on a word boundary), so I replaced
it with a slightly slower--but safe--implementation that builds the
checksum a character at a time.

Within Apache, this patch reduces the CPU time spent in table ops by about
40%.  In benchmark testing of the httpd, the patch yields a 1-3% increase in
throughput to clients (thanks to IanH for the throughput data).

Note: Because the patch increases the size of apr_table_entry_t, it
requires a "make clean."


View raw message