I will try the "host != "some.url.com" part.
For the isInNet() trick, the problem is that it inducts a DNS resolution call for every request to compare with the IP/mask parameters.
I was thinking to myself that it was an useless overhead...
Ionel
-----Message d'origine-----
De : Matus UHLAR - fantomas [mailto:uhlar_at_fantomas.sk]
Envoyé : vendredi 6 juin 2008 17:07
À : squid-users_at_squid-cache.org
Objet : Re: [squid-users] performances ... again
On 06.06.08 14:37, Ionel GARDAIS wrote:
> function FindProxyForURL(url,host) {
> if (
> (
> !(
> host.indexOf('www.ifp.fr') == 0
> || host.indexOf('validation.ifp.fr') == 0
> || host.indexOf('project.ifp.fr') == 0
> || host.indexOf('ogst.ifp.fr') == 0
> )
> )
wouldn't be easier to compare host with those strings?
host != "www.ifp.fr" && host != "validation.ifp.fr" ...
> || host.match('127.0.0.1')
is using of
isInNet(host, "127.0.0.0", "255.0.0.0")
not working?
-- Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. I just got lost in thought. It was unfamiliar territory.Received on Fri Jun 06 2008 - 16:14:50 MDT
This archive was generated by hypermail 2.2.0 : Sat Jun 07 2008 - 12:00:03 MDT