Forum Discussion
Chris_Miller
Altostratus
Jan 21, 2011Here'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.