summaryrefslogtreecommitdiffhomepage
path: root/src/html-error.c
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-07 22:09:35 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-07 22:09:35 +0100
commit58cfaf2659a4daca9bc8933f1ce135ba619557da (patch)
treeef35faf9124430ff667b4006c275cc16327ac5cb /src/html-error.c
parentebc7f15ec75526ffacad7b82c99764b90eef021a (diff)
make acl lookup 450x faster by using sblist
tested with 32K acl rules, generated by for x in `seq 128` ; do for y in `seq 255` ; do \ echo "Deny 10.$x.$y.0/24" ; done ; done after loading the config (which is dogslow too), tinyproxy required 9.5 seconds for the acl check on every request. after switching the list implementation to sblist, a request with the full acl check now takes only 0.025 seconds. the time spent for loading the config file is identical for both list implementations, roughly 30 seconds. (in a previous test, 65K acl rules were generated, but every connection required almost 2 minutes to crunch through the list...)
Diffstat (limited to 'src/html-error.c')
0 files changed, 0 insertions, 0 deletions