Bloking Bad bots

Robert Paprocki rpaprocki at
Mon Nov 14 16:56:15 UTC 2016

On Mon, Nov 14, 2016 at 8:51 AM, <lists at> 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).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list