Welcome! Log In Create A New Profile

Advanced

Re: Bloking Bad bots

Robert Paprocki
November 14, 2016 11:58AM
On Mon, Nov 14, 2016 at 8:51 AM, <lists@lazygranch.com> wrote:

> I'd be shocked if the map function doesn't use a smart search scheme
> rather than check every item.
>

You're in for a bit of a shock then. It is a linear search :p Curious as to
what you think it should look like instead?

Getting back to the original question though, a map should (_should_) be
faster than building a larger and larger regex, particularly if the map is
doing string comparison as opposed to regex searching for each map member.
Building large alternation-oriented regular expressions can get pretty
expensive rather quickly, though some of that will depend on the regex
engine and compile-time options (e.g, are you using PCRE JIT, etc).
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Bloking Bad bots

debilish99 November 14, 2016 10:04AM

Re: Bloking Bad bots

gariac November 14, 2016 10:32AM

Re: Bloking Bad bots

Anoop Alias November 14, 2016 10:42AM

Re: Bloking Bad bots

gariac November 14, 2016 11:52AM

Re: Bloking Bad bots

Robert Paprocki November 14, 2016 11:58AM

Re: Bloking Bad bots

Anonymous User November 14, 2016 12:08PM

Re: Bloking Bad bots

ph.gras November 14, 2016 12:14PM

Re: Bloking Bad bots

George November 14, 2016 05:18PM

Re: Bloking Bad bots

Star Dot November 15, 2016 12:24AM

Re: Bloking Bad bots

gariac November 15, 2016 03:56AM

Re: Bloking Bad bots

debilish99 November 15, 2016 04:05AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready