GitHub PushEvent at 2014-11-18 14:14:37
Repository: haproxy
Actor: hubot
Payload: {"shas":[["de898712a0eda8dd03520f1c55b6c1b660a3ea9a","f0989643efd6600a9167c036cd32ddcc6802ecbc@babiel.com","MEDIUM: regex: Use pcre_study always when PCRE is used, regardless of JIT\n\npcre_study() has been around long before JIT has been added. It also seems to\naffect the performance in some cases (positive).\n\nBelow I've attached some test restults. The test is based on\nhttp://sljit.sourceforge.net/regex_perf.html (see bottom). It has been modified\nto just test pcre_study vs. no pcre_study. Note: This test does not try to\nmatch specific header it's instead run over a larger text with more and less\ncomplex patterns to make the differences more clear.\n\n% ./runtest\n'mark.txt' loaded. (Length: 19665221 bytes)\n-----------------\nRegex: 'Twain'\n[pcre-nostudy] time:    14 ms (2388 matches)\n[pcre-study] time:    21 ms (2388 matches)\n-----------------\nRegex: '^Twain'\n[pcre-nostudy] time:   109 ms (100 matches)\n[pcre-study] time:   109 ms (100 matches)\n-----------------\nRegex: 'Twain$'\n[pcre-nostudy] time:    14 ms (127 matches)\n[pcre-study] time:    16 ms (127 matches)\n-----------------\nRegex: 'Huck[a-zA-Z]+|Finn[a-zA-Z]+'\n[pcre-nostudy] time:   695 ms (83 matches)\n[pcre-study] time:    26 ms (83 matches)\n-----------------\nRegex: 'a[^x]{20}b'\n[pcre-nostudy] time:    90 ms (12495 matches)\n[pcre-study] time:    91 ms (12495 matches)\n-----------------\nRegex: 'Tom|Sawyer|Huckleberry|Finn'\n[pcre-nostudy] time:  1236 ms (3015 matches)\n[pcre-study] time:    34 ms (3015 matches)\n-----------------\nRegex: '.{0,3}(Tom|Sawyer|Huckleberry|Finn)'\n[pcre-nostudy] time:  5696 ms (3015 matches)\n[pcre-study] time:  5655 ms (3015 matches)\n-----------------\nRegex: '[a-zA-Z]+ing'\n[pcre-nostudy] time:  1290 ms (95863 matches)\n[pcre-study] time:  1167 ms (95863 matches)\n-----------------\nRegex: '^[a-zA-Z]{0,4}ing[^a-zA-Z]'\n[pcre-nostudy] time:   136 ms (4507 matches)\n[pcre-study] time:   134 ms (4507 matches)\n-----------------\nRegex: '[a-zA-Z]+ing$'\n[pcre-nostudy] time:  1334 ms (5360 matches)\n[pcre-study] time:  1214 ms (5360 matches)\n-----------------\nRegex: '^[a-zA-Z ]{5,}$'\n[pcre-nostudy] time:   198 ms (26236 matches)\n[pcre-study] time:   197 ms (26236 matches)\n-----------------\nRegex: '^.{16,20}$'\n[pcre-nostudy] time:   173 ms (4902 matches)\n[pcre-study] time:   175 ms (4902 matches)\n-----------------\nRegex: '([a-f](.[d-m].){0,2}[h-n]){2}'\n[pcre-nostudy] time:  1242 ms (68621 matches)\n[pcre-study] time:   690 ms (68621 matches)\n-----------------\nRegex: '([A-Za-z]awyer|[A-Za-z]inn)[^a-zA-Z]'\n[pcre-nostudy] time:  1215 ms (675 matches)\n[pcre-study] time:   952 ms (675 matches)\n-----------------\nRegex: '\"[^\"]{0,30}[?!\\.]\"'\n[pcre-nostudy] time:    27 ms (5972 matches)\n[pcre-study] time:    28 ms (5972 matches)\n-----------------\nRegex: 'Tom.{10,25}river|river.{10,25}Tom'\n[pcre-nostudy] time:   705 ms (2 matches)\n[pcre-study] time:    68 ms (2 matches)\n\nIn some cases it's more or less the same but when it's faster than by a huge margin.\nIt always depends on the pattern, the string(s) to match against etc.\n\nSigned-off-by: Christian Ruppert <c.ruppert@babiel.com>","Christian Ruppert",true],["743c128580ee29c8f073b4a29771a5ce715f3721","aff024fe4ab0fece4091de044c58c9ae4233383a@1wt.eu","BUG/MINOR: config: don't inherit the default balance algorithm in frontends\n\nTom Limoncelli from Stack Exchange reported a minor bug : the frontend\ninherits the LB parameters from the defaults sections. The impact is\nthat if a \"balance\" directive uses any L7 parameter in the defaults\nsections and the frontend is in TCP mode, a warning is emitted about\ntheir incompatibility. The warning is harmless but a valid, sane config\nshould never cause any warning to be reported.\n\nThis fix should be backported into 1.5 and possibly 1.4.","Willy Tarreau",true]],"size":2,"ref":"refs/heads/master","head":"743c128580ee29c8f073b4a29771a5ce715f3721"}