Welcome! Log In Create A New Profile

Advanced

Re: Question on 301 redirect

Maxim Dounin
August 05, 2011 04:54AM
Hello!

On Fri, Aug 05, 2011 at 03:53:24AM -0400, zflairz wrote:

> Is this HttpMapModule an O(1) (not O(N)) operation when doing the
> lookup? This is because I have tens of thousands of urls to be mapped
> (can't derive a regular expression out of them), so an O(1) is perf-wise
> required. Thank you!

Yes, map module uses hash table and it's O(1) with static strings
(obviously enough it's still O(N) with regular expressions as
supported in 0.9.6+).

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Question on 301 redirect

zflairz August 04, 2011 11:52PM

Re: Question on 301 redirect

Maxim Dounin August 05, 2011 02:38AM

Re: Question on 301 redirect

zflairz August 05, 2011 03:53AM

Re: Question on 301 redirect

Maxim Dounin August 05, 2011 04:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 234
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