]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
ACL Optimization: inline currentAnswer() methods to reduce copying
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 4 May 2012 22:20:07 +0000 (16:20 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 4 May 2012 22:20:07 +0000 (16:20 -0600)
of answer objects which now contain two integers instead of just one.

src/acl/Checklist.cc
src/acl/Checklist.h

index 496dbf922890ada435d06a7dedca46ddc4878a54..aef2bae6267c03dbd203d03f6d6759971e270428 100644 (file)
 #include "squid-old.h"
 #include "acl/Checklist.h"
 
-allow_t const &
-ACLChecklist::currentAnswer() const
-{
-    return allow_;
-}
-
-void
-ACLChecklist::currentAnswer(allow_t const newAnswer)
-{
-    allow_ = newAnswer;
-}
-
 void
 ACLChecklist::matchNonBlocking()
 {
index 33b81e0141e0c527b3d0187c87c34436e4cb4ea4..98a79bb03135eb32c8eb96e8470f34b4d542f3f0 100644 (file)
@@ -131,8 +131,8 @@ public:
     bool finished() const;
     void markFinished();
 
-    allow_t const & currentAnswer() const;
-    void currentAnswer(allow_t const);
+    const allow_t &currentAnswer() const { return allow_; }
+    void currentAnswer(const allow_t &newAnswer) { allow_ = newAnswer; }
 
     void changeState(AsyncState *);
     AsyncState *asyncState() const;