Forum Discussion
Chris_Miller
Jan 12, 2011Altostratus
A Great Read - "Comparing iRule Control Statements"
I'm not sure how often everyone in this forum checks out tech tips, but this new one by Joe is very cool. http://devcentral.f5.com/Tutorials/...ments.aspx It illustrates the di...
Chris_Miller
Jan 13, 2011Altostratus
One other awesome takeaway was your recommendation to use a stats profile to make sure your if/elses were ordered as efficiently as possible.
Order your if/elseif's with most frequent hits at the top.
If/elseif's must perform the full comparison for each if and elseif. If you can move the most frequently hit match to the top, you'll have much less processing overhead. If you don't know which hits are the highest, think about creating a Statistics profile to dynamically store your hit counts and then modify you iRule accordingly.
For some wacky reason, I hadn't thought of doing that and have basically been guessing at customer behavior. Thanks for that one too!
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