Forum Discussion
Sashi_81625
Nimbostratus
Sep 01, 2010need to optimize search block
In my iRule, i have below block. Can someone please optimize this code. My concern is that "static::payld" may store few 100 URLs, and iterating over these URLs will impact the performance.
...
Sashi_81625
Nimbostratus
Sep 02, 2010Found out that we can use matchclass method on lists too... pretty cool. above code is replaced as
set static::payld [lreplace $static::payld [lsearch -exact $static::payld ""] [lsearch -exact $static::payld ""]]
if { [matchclass [HTTP::uri] starts_with $static::payld] } {
HTTP::respond 302 Location $kill_switch_url
}
here is the reference [comment 1]
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/138/iRules-101--08--Classes.aspx
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
