Re: [PATCH] speedup for apr_table_t

2001-11-18 Thread Brian Pane
I wrote: [...] I used the more complicated, shift-based approach because it guarantees that greater-than/less-than comparisons on the prefix will yield the same results as strcasecmp on the first 4 bytes. This makes it possible to use the prefix in the comparator function in the big qsort in

[PATCH 2] speedup for apr_table_t

2001-11-18 Thread Brian Pane
Attached is a new version of my table speedup patch. In this version, I added some additional optimizations to the table code: * A rewrite of apr_table_overlap() that uses a hash table (sort of) instead of qsort * Cliff's faster version of the prefix computation macro * apr_palloc instead of