Re: Initial patch for file suffix acl

From: Lucas Brasilino <lucas.brasilino@dont-contact.us>
Date: Mon, 03 Mar 2008 14:31:20 -0300

Hi Robert:

>
> Its probably better to do this as a combined regex:
>
> acl file_suffix exts .foo .bar .baz
>
> creating a regexp based acl .*(\.foo|\.bar|\.baz)$
>
> any decent regexp engine will be better at this than your linear search.

Do you think compiling a regex (ok, it's made once) and matching it to
an url (maybe _huges_ urls, maybe many hundreds times per second) are
cheapper than this file_suffix implementation ?

regards
Lucas Brasilino
Received on Mon Mar 03 2008 - 10:32:14 MST

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:10 MDT