[squid-dev] [PATCH] Refactor wordlist to SBufList in acl/RegexData

Kinkie gkinkie at gmail.com
Wed Oct 26 23:18:56 UTC 2016


On Wed, Oct 26, 2016 at 10:40 PM, Amos Jeffries <squid3 at treenet.co.nz> wrote:
> On 27/10/2016 9:16 a.m., Kinkie wrote:
>> Hi all,
>>    the attached patch refactors the use of wordlist to SBufList in
>> acl/RegexData.cc; the "test.txt" attachment shows the output of
>> "./src/squid -X 2>&1 | grep 'RegexData' >/tmp/test_plan.txt" when
>> applied to a default configuration file with these additions:
>> acl t1 dstdom_regex pattern1 pattern2
>> acl t2 dstdom_regex -i pattern3 pattern4
>> acl t3 dstdom_regex +i pattern5 pattern6
>>
>
> Audit:
>
> * can you please take advantage of the change to get rid of the
> "compileOptimisedREs: compileOptimisedREs:" in the logs

Cleaned logs up.

> * please use emplace_back instead of sl.push_back(SBuf(clean));
>  - line ~234

Ok. Fixed in all instances.

Updated patch attached. If noone objects before then, I'll merge in ~8hrs.


Francesco Chemolli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wordlist-sbuflist-aclregexdata.patch
Type: application/octet-stream
Size: 12604 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20161027/a593d0c4/attachment.obj>


More information about the squid-dev mailing list