apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: [PATCH] table patch using mergesort Re: Frankentables
Date Wed, 18 Jun 2003 15:10:37 GMT
[...]

> BRIAN'S-PATCH
> 
> 0000c1e8 559      1.24604     apr_table_get           ...
> 0000c4f8 253      0.563952    apr_table_setn          ...
> 0000ce94 203      0.452499    table_mergesort         ...
> 0000c06c 187      0.416834    apr_table_make          ...
> 0000cbd8 179      0.399001    apr_table_addn          ...
> 0000d048 138      0.30761     apr_table_compress      ...
> 0000ccec 86       0.191699    apr_table_vdo           ...
> 0000c9e4 84       0.187241    apr_table_mergen        ...
> 0000c160 82       0.182783    table_reindex           ...
> 0000c048 71       0.158263    apr_table_elts          ...
> 0000c050 62       0.138202    apr_is_empty_table      ...
> 0000ccc4 57       0.127056    apr_table_do            ...
> 0000c700 54       0.120369    apr_table_unset         ...
> 
> TOTAL:	 2015 	  4.491549 %

I added back the callbacks apreq needs,
and moved the table_reindex call inside
the dups_found test.  Here's the corresponding
oprofile data:

0000c748 561      1.25878     apr_table_get           ...
0000ca54 256      0.574416    apr_table_setn          ...
0000c2e4 232      0.520565    table_mergesort         ...
0000d490 194      0.4353      apr_table_addn          ...
0000c134 178      0.399399    apr_table_make          ...
0000c4b8 117      0.262526    apr_table_compress      ...
0000d0f4 116      0.260282    apr_table_mergen        ...
0000d704 85       0.190724    apr_table_vdo           ...
0000cc5c 66       0.148092    apr_table_unset         ...
0000c0e4 63       0.14136     apr_table_elts          ...
0000c0ec 59       0.132385    apr_is_empty_table      ...
0000d6dc 53       0.118922    apr_table_do            ...

TOTAL:	 1980 	  4.442751 %

apr patch is attached below; the same patch Brian wrote for 
httpd-2.0 applies.


Mime
View raw message