]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: regex: Use PCRE JIT in acl
authorHiroaki Nakamura <hnakamur@gmail.com>
Sun, 13 Jan 2013 06:00:42 +0000 (15:00 +0900)
committerWilly Tarreau <w@1wt.eu>
Mon, 1 Apr 2013 22:02:54 +0000 (00:02 +0200)
commit7035132349ed8cf62157eaec3453be88dbf3586e
treea596185b22ad68be9b20abda956fb8efb2851cee
parent0fbf016508b66c72ec82abc54c9d5806bdf061c5
MEDIUM: regex: Use PCRE JIT in acl

This is a patch for using PCRE JIT in acl.

I notice regex are used in other places, but they are more complicated
to modify to use PCRE APIs. So I focused to acl in the first try.

BTW, I made a simple benchmark program for PCRE JIT beforehand.
https://github.com/hnakamur/pcre-jit-benchmark

I read the manual for PCRE JIT
http://www.manpagez.com/man/3/pcrejit/

and wrote my benchmark program.
https://github.com/hnakamur/pcre-jit-benchmark/blob/master/test-pcre.c
Makefile
include/common/regex.h
include/types/acl.h
src/acl.c