]> git.ipfire.org Git - thirdparty/squid.git/commit
Allocate fast-checking ACLFilledChecklists on stack (#1835)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Fri, 7 Jun 2024 06:43:46 +0000 (06:43 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 8 Jun 2024 16:25:11 +0000 (16:25 +0000)
commitebe87c093363a59d42b7c36bbce733a3eae9a7d6
tree1350e9cb25e94b3f9c1187e124c55b190931dcc6
parent016c612a77ac4f880ec2ed35e1c8fa9a73c3a2dd
Allocate fast-checking ACLFilledChecklists on stack (#1835)

There is no need for dynamic allocation risks and performance overheads
in these simple "immediate fastCheck()" cases.

This change converts all dynamically allocated checklists that use only
fastCheck() calls except one: Security::PeerConnector::initialize() has
to allocate its checklist dynamically to pass it to SSL_set_ex_data().
src/HttpRequest.cc
src/adaptation/icap/Launcher.cc
src/client_side_reply.cc
src/http/Stream.cc
src/security/PeerConnector.cc