current/tools privoxy-log-parser.pl,1.170,1.171
Fabian Keil via ijbswa-commits <[email protected]> Thu, 08 Jun 2017 13:13:51 +0000
| Newsgroups | gmane.comp.web.privoxy.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ijbswa/current/tools
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1261/tools
Modified Files:
privoxy-log-parser.pl
Log Message:
Skip a regex if we don't need the captured result
At least in theory this is more efficient but the gains
don't seem impressive enough to be clearly measurable with
real world log files.
At least it looks faster now ...
Index: privoxy-log-parser.pl
===================================================================
RCS file: /cvsroot/ijbswa/current/tools/privoxy-log-parser.pl,v
retrieving revision 1.170
retrieving revision 1.171
diff -C2 -d -r1.170 -r1.171
*** privoxy-log-parser.pl 3 Mar 2017 17:43:35 -0000 1.170
--- privoxy-log-parser.pl 8 Jun 2017 13:13:48 -0000 1.171
***************
*** 2101,2106 ****
$stats{'http-version'}{$4}++;
! } elsif ($c =~ m/^scan: Host: ([^\s]+)/ and
! $cli_options{'host-statistics-threshold'} != 0) {
# scan: Host: p.p
--- 2101,2106 ----
$stats{'http-version'}{$4}++;
! } elsif ($cli_options{'host-statistics-threshold'} != 0 and
! $c =~ m/^scan: Host: ([^\s]+)/) {
# scan: Host: p.p
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot