]> git.ipfire.org Git - thirdparty/squid.git/commit
Replace Packer object API with Packable API
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 26 May 2015 17:25:04 +0000 (10:25 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 26 May 2015 17:25:04 +0000 (10:25 -0700)
commit1071ffed56172406d771265af76d8273ffcdb89e
tree25843b961c78a8467f944902c5b400bcb6a45771
parent829030b5ce5af975ebd66b0fbb8ba26dadab6d99
parent0a647ffb7aae884369aeba0f1701a3b67a9b028c
Replace Packer object API with Packable API

Majority of thost patch is symbol renaming to unify the
class method names to the Packable API names.

There is effectively no logical change in this patch
despite appearances because it replaces the Packer object
which provides methods which are just wrappers pointing
to static functions which are in turn wrappers pointing
to storage buffer object methods. With direct calls to
those storage object methods (renamed).

We can now interchangebly use MemBuf or StoreEntry objects
with the packInto(Packable *) functions. Or any other
object which inherits and implements the Packable API.

We also gain 0.1% in performance (+2 RPS) by avoiding the
layers of wrapper funcions and Packer object allocate /
deallocate cycles.
src/MemObject.cc
src/adaptation/icap/ServiceRep.cc
src/adaptation/icap/Xaction.cc
src/client_side.cc
src/comm/TcpAcceptor.cc
src/external_acl.cc
src/ssl/PeerConnector.cc
src/stat.cc
src/store_client.cc