On Thursday 31 July 2003 21.08, Fernando Maior wrote:

> acl blacklist url_regex -i "/etc/squid/block/blacklist1"
> acl blacklist url_regex -i "/etc/squid/block/blacklist2"
>
> Does squid search each file, in the order above,
> trying to match the request? Or it reads the files
> once at startup and make the search in a memory
> hash, and only rereads the files if we command a
> -k reload to it?

It loads the files while parsing the configuration file. As regex 
patterns can not be sorted or hashed it stores them in a linear list 
in memory.

> 2)
> Is there any setup on squid.conf that makes the searches
> above faster? More memory for some kind of anything?

Yes, by using the proper acl types instead of the regex based acls. 
This is why there is more than only url_regex..

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org

If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, [EMAIL PROTECTED]

Reply via email to