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

Reply via email to