Re: Performance tuning

Splash Forums Rewrite Users Performance tuning Re: Performance tuning

#22985

pavel.arnost
Participant

If the processing is ended after match, why is this:

return ConfigurationBuilder.begin()
.addRule(Join.path("/{regionName}/{categoryName}").to("/task/list.html")
.where("regionName").matches("[a-z-]+")
.where("categoryName").matches("[a-z-]+"));

two times faster than:

return ConfigurationBuilder.begin()
.addRule(Join.path("/{regionName}/{categoryName}").to("/task/list.html")
.where("regionName").matches("[a-z-]+")
.where("categoryName").matches("[a-z-]+"))

.addRule(Join.path("/").to("/index.html"))
... 50 times repeated ...;

Shouldn’t be the processing time the same for both rulesets for /region-name/category-name url?