]> git.ipfire.org Git - thirdparty/squid.git/commit - src/client_side_reply.cc
Remove NullStoreEntry (#241) M-staged-PR241
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Mon, 16 Jul 2018 12:47:52 +0000 (12:47 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 16 Jul 2018 16:35:12 +0000 (16:35 +0000)
commit69565793eef89d0137a69e2d923f14adc051b173
tree2fd7dd5fa9d651cb8fefb0d69195cf9e2ee090bd
parentc3b51d64909335642672ca01dc6da9526187d36d
Remove NullStoreEntry (#241)

A nil pointer is the proper way to indicate a missing heap-allocated
object in C++. Removing NullStoreEntry simplifies and optimizes code.
This removal also brings us one step closer to removing all virtual
methods from StoreEntry, further optimizing code and even saving 8 bytes
per non-shared memory cache entry on most platforms.

Also un-virtualized a few StoreEntry-only methods to optimize their
callers.
src/Store.h
src/StoreClient.h
src/client_side_reply.cc
src/htcp.cc
src/icp_v2.cc
src/icp_v3.cc
src/mime.cc
src/store.cc
src/tests/stub_store.cc
src/tests/testStore.cc
src/urn.cc