Forum Discussion
jay_41157
Nimbostratus
Dec 17, 2008double wildcard match for uri patterns
Hi,
Is it possible to use 2 wildcards when checking for a uri ?
For ex,
I want to look for
uri1abcURI2zzz
uri1xxxURI2wqq
...
hoolio
Cirrostratus
Dec 17, 2008I've read in the forums and an old article (Click here) that an if statement is more efficient than a switch for a handful of comparisons. After that a switch is more efficient. At some point (around 100 elements) a datagroup would be more efficient than a switch. I haven't actually tested this before though.
I'd guess the difference isn't huge for a handful of comparisons. I think it's more important that you use a form that's easy for you to read.
If speed/resource usage is critical for you, you can test the versions using the timing command (Click here).
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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