geosolutions-it / http-proxy

Lean and Mean HTTP Proxy written in Java
GNU General Public License v3.0
21 stars 31 forks source link

Improve the Regex compilation #5

Open tdipisa opened 12 years ago

tdipisa commented 12 years ago

The request checker compiles the regex every time, if there are many requests in parallel comes out a fair overhead.

Better if we compile the regex config during parsing (see also well been a mistake in the syntax of regex) and returns a list Pattern instead of strings.

afabiani commented 12 years ago

Take a look at

http://grinder.svn.sourceforge.net/viewvc/grinder/trunk/source/src/net/grinder/plugin/http/tcpproxyfilter/