httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@telebusiness.co.nz>
Subject Re: [PATCH] 7% to 25% performance improvement
Date Sun, 25 Jan 1998 03:18:49 GMT
Dean Gaudet wrote:

> On Sat, 24 Jan 1998, Dean Gaudet wrote:
>
> > -     table_entry *elts = (table_entry *)cld->env->elts;
> > +     array_header *elts = table_elts(cld->env);
> >
> >
> > -     for (i = 0; i < cld->env->nelts; ++i) {
> > +     for (i = 0; i < elts->nelts; ++i) {
> >
> > That's been the "correct" way to do it forever... and will work with
> > all versions of Apache.
>
> Err, excuse me, my brain is in a burrito-coma at the moment.  What
> I really meant to say was:
>
> -     table_entry *elts = (table_entry *)cld->env->elts;
> +     array_header *arr = table_elts(cld->env);
> +     table_entry *elts = (table_entry *)arr->elts;
>
> -     for (i = 0; i < cld->env->nelts; ++i) {
> +     for (i = 0; i < arr->nelts; ++i) {

Thanks Dean.  I see there's a bunch more of these in mod_perl, I'll fix
these up Rob.

-Doug


Mime
View raw message