Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Regex rule slow

$
0
0
Server: 2008R2
IIS: 7.5 with PHP 5.3 installed via WPI
URLrewrite: 2.0
Regex pattern: ^stuff/([^/]*)/(\d+-\d+)-([^/]*)/

I have a set of 11 reqex based rules, and experiencing one of the rules being slow compared to the other. Based on entire page generation time.

Symptoms: The first request where the specific rule matches, 1 sec extra is added, subsequent requests is alot faster. Request-rule tracing shows the following for the first request of a newly visisted url:

32. -NOTIFY_MODULE_START (1295 ms)
ModuleName: RewriteModule
Notification: 1
fIsPostNotification: false
Notification: BEGIN_REQUEST

So it seems every unique url will take extra time the first time they are visited.

This rule is number 7, and moving it to first position to be evaluated first does not change speed, nor does it slow down the other rules if it does not match. Not really sure where to direct my attention, since the tracing points at the rewrite module being the culprit.

Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>