Forum Discussion
Paul_Michals_10
Jan 21, 2011Nimbostratus
"if" verses "elseif" - performance question
Hello F5 DevCentral,
This comming Sunday I am to perform some minor maintenance on some of our existing F5 BIG-IP Virtual Servers when I will be modifing their iRules.
The questio...
Chris_Miller
Jan 21, 2011Altostratus
Here's a good article on optimizing iRules which covers if, elseif, and switch. I'd go with elseif here.
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/108/iRules-Optimization-101--01--if-elseif-and-switch.aspx
Also, depending on your version, you might not need "$::" before your classes which would help performance.
http://devcentral.f5.com/wiki/default.aspx/iRules/CMPCompatibility.html
Let me know if you have any questions.
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