[squid-dev] [PATCH] Extend SBufContainerJoin to have prefix and suffix arguments

Kinkie gkinkie at gmail.com
Tue Nov 1 20:02:17 UTC 2016


Hi all,
  the attached patch extends SBufContainerJoin to have prefix and
suffix arguments. This can support a use-case which I found in the
current ACLRegexData work I'm following, where we need to transform
{"foo", "bar", "gazonk"}
into
(foo)|(bar)|(gazonk)

It can be done with the current version of the SBufContainerJoin
function, but it requires one more copy.
There are probably further cases of this pattern elsewhere, all hand-rolled.

-- 
    Francesco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sbuflist-prefixsuffix-v1.patch
Type: application/octet-stream
Size: 2186 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20161101/a530edb6/attachment.obj>


More information about the squid-dev mailing list