Forum Discussion
Nov 10, 2013
simple if statements optimized to switch statements ?
Is there a performance advantage to optimizing the simplest type of if statements as switch statements ?
EXAMPLE 1 :
if { [string tolower [HTTP::path]] eq "somepage.html" } {
pool pool-01
}
...
Kevin_Stewart
Employee
Nov 11, 2013What I'm referring to is performing the [string tolower] operation multiple times
Good point, and another good reason to use a switch since it's only done once.
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