Hello!
On Mon, May 6, 2013 at 1:38 PM, vocaltrancea wrote:
>
> Kind of unrelated but do you know if the replace_filter has better
> performance than the sub_filter module?
Do you mean the standard ngx_sub_filter module?
http://wiki.nginx.org/HttpSubModule
Or do you mean Weibin Yao's ngx_http_substitution_module?
> I haven't ran any benchmarks but I
> use both and I was thinking maybe I should switch everything to your sregex
> module?
>
I suggest you run some benchmarks yourself for your setup.
For now, sregex is not particularly efficient in terms of CPU time.
It's still a very young project and it does not perform any important
optimizations yet as compared to PCRE or RE2. I do have plans to
optimize sregex in the near future.
Best regards,
-agentzh