]> err.no Git - varnish/commit
Rewrite the req.hash implmentation:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 6 Aug 2007 09:25:20 +0000 (09:25 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 6 Aug 2007 09:25:20 +0000 (09:25 +0000)
commit83a51d5556f1085d77796f6dc4c5aad7f4dbbc83
tree810b0c5f63a262ddc8229d177799cd5360fbd72f
parent1291ff699d3c277994685750a88d8f2cf61f6fa5
Rewrite the req.hash implmentation:

Instead of assembling the entire hash-string in the workspace, use
a scatter gather approach, hinted by the VCL compiler.

This eliminates the workspace reservation which prevented regsub() from
working in vcl_hash, and reduces the size of the necessary workspace a
fair bit as well, at the cost of a little bit of complexity in the
hash implmentations.

Closes ticket 137 and possibly 141

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1805 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_center.c
varnish-cache/bin/varnishd/cache_hash.c
varnish-cache/bin/varnishd/cache_vrt.c
varnish-cache/bin/varnishd/hash_classic.c
varnish-cache/bin/varnishd/hash_simple_list.c
varnish-cache/bin/varnishd/hash_slinger.h