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...
hooleylist
Jan 21, 2011Cirrostratus
If those three checks are all mutually exclusive, I'd change the iRule so as few of checks are performed as possible. ie, if it's a request for / and you don't need to check for the IP addresses, either chain the checks in an if/elseif/elseif/else chain or use the return command to exit that iRule event in that iRule.
http://devcentral.f5.com/wiki/default.aspx/iRules/return
Chris' suggestions are also good points to consider.
Aaron
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