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
Posted By Joe on 01/12/2011 08:40 PM
Thanks Chris, it was a fun article to come up with and write. I love writing full applications within iRules!
As for the "-glob" adding processing, I would assume that to be the case but I didn't expect it to add on nearly 10% overhead for non-wildcard comparisons. I guess I should add in "-regexp" to see how much more that adds as well. Lesson, if you aren't using wildcards and want to use switch, make sure -glob isn't present. It'll save you a good chunk of CPU.
-Joe
Whenever someone has asked for a switch statement, I've always tacked on -glob just in case they did wildcards later. Given that hit, I might have to re-evaluate that.
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