]> err.no Git - varnish/commit
Have the VCL compiler provide a hint about the worst case number of
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 6 Aug 2007 08:07:18 +0000 (08:07 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 6 Aug 2007 08:07:18 +0000 (08:07 +0000)
commit3f2d1f460338e97b72306eed0039e3e8bdb832a8
treee194dbccc7b8a08e16ed397d3a58d00c420b3468
parent76eb52c55a923b44a3bf5a211570f522802b4626
Have the VCL compiler provide a hint about the worst case number of
operations on the req.hash variable.

It is only a hint, because it merely counts how many times the parser
saw something being added to the req.hash variable.  If the operation
was in a subroutine which was called multiple times, the hint will not
reflect the number of actual operations.

For now we will deal with that at runtime, at the expense of a
failed transaction every time we run short.  If this becomes an issue,
an extensive topological analysis of the VCL program can give us
a definitive count.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1803 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/include/vcl.h
varnish-cache/lib/libvcl/vcc_action.c
varnish-cache/lib/libvcl/vcc_compile.c
varnish-cache/lib/libvcl/vcc_compile.h
varnish-cache/lib/libvcl/vcc_fixed_token.c
varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl