diff options
author | Stefan Fritsch <sf@apache.org> | 2010-10-02 14:44:20 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2010-10-02 14:44:20 +0000 |
commit | 049ba34b53b9c81125aeecffd0abbf97281b5bc7 (patch) | |
tree | c32d8f6e6ca29dc3ad0cc5133647f11f0d0a3a28 /include/util_cfgtree.h | |
parent | d814b8320690cb668b158e4d04c1a94c440c5082 (diff) | |
download | httpd-049ba34b53b9c81125aeecffd0abbf97281b5bc7.tar.gz |
core: Speed up config parsing if using a very large number of config
files
PR: 50002
Submitted by: andrew cloudaccess net
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1003808 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/util_cfgtree.h')
-rw-r--r-- | include/util_cfgtree.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/util_cfgtree.h b/include/util_cfgtree.h index 4da4c7dd1d..791a5cc16c 100644 --- a/include/util_cfgtree.h +++ b/include/util_cfgtree.h @@ -64,6 +64,13 @@ struct ap_directive_t { const char *filename; /** The line number the directive was on */ int line_num; + + /** A short-cut towards the last directive node in the tree. + * The value may not always be up-to-date but it always points to + * somewhere in the tree, nearer to the tail. + * This value is only set in the first node + */ + struct ap_directive_t *last; }; /** |