apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dean gaudet <d...@arctic.org>
Subject Re: What to do about tables?
Date Thu, 15 Nov 2001 01:05:08 GMT
On Sun, 4 Nov 2001, Brian Pane wrote:

> 3. Keep using apr_table_t for the fields in request_rec, and redesign
>    the internals of apr_table_t to support O(log(n)) access

whatever you do please remember to make sure you don't consume lots of
extra memory for the many tables which have only 1 or 2 entries.

>      Pros:
>        * Performance improvement for the httpd
>        * Almost no impact on code that uses APR
>      Cons:
>        * Changes required to code that uses apr_table_elts() (on the order
>          of half a dozen calls in Apache 2.0, and occasional usage in the
>          handful of large 3rd-party modules that I've checked)

you can always have an elt array and then use some other method to index
into the elt array...

but that sucks :)

-dean


Mime
View raw message