]> granicus.if.org Git - apache/commitdiff
converted apr_pcalloc to apr_palloc for 15% reduction in run time of add_any_filter
authorBrian Pane <brianp@apache.org>
Fri, 23 Nov 2001 11:07:51 +0000 (11:07 +0000)
committerBrian Pane <brianp@apache.org>
Fri, 23 Nov 2001 11:07:51 +0000 (11:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92142 13f79535-47bb-0310-9956-ffa450edef68

server/util_filter.c

index 2d38281fa08564941eb15de0ecfb494a27a330f9..8150c79e262fc7b358cc3a578c4ee33988c7879d 100644 (file)
@@ -271,7 +271,7 @@ static ap_filter_t *add_any_filter(const char *name, void *ctx,
 
         if (node && node->frec) {
             apr_pool_t* p = r ? r->pool : c->pool;
-            ap_filter_t *f = apr_pcalloc(p, sizeof(*f));
+            ap_filter_t *f = apr_palloc(p, sizeof(*f));
             ap_filter_t **outf = r ? r_filters : c_filters;
 
             f->frec = node->frec;