On Thu, Oct 16, 2008 at 01:56:59AM +0800, howard chen wrote: > Hello, > > On Wed, Oct 15, 2008 at 10:14 PM, Henrik K <hege@xxxxxxx> wrote: > > On Wed, Oct 15, 2008 at 03:42:20PM +0200, Henrik Nordstrom wrote: > >> > >> > Any suggestion for having large ACL in a high traffic server? > >> > >> Avoid using regex based acls. > > > > It's fine if you use Perl + Regexp::Assemble to optimize them. And link > > Squid with PCRE. Sometimes you just need to block more specific URLs. > > > > > > WHat do you mean "link Squid with PCRE" ? http://www.pcre.org/ When compiling add "-lpcreposix -lpcre" to LDFLAGS. It overrides your your system library, being faster and I don't have any memory leaks anymore. If you want to read long regexps from include file, you need to patch a bit: http://www.squid-cache.org/bugs/show_bug.cgi?id=2215 (src/cache_cf.c -> strtokFile() -> change all 256 to 65535)