Forum Discussion
smp_86112
Cirrostratus
Feb 02, 2010Efficiency of String Comparison
Which statement is more efficent in terms of processing?
[HTTP::uri] equals "/"
or
[HTTP::uri] == "/"
According to my interpretation of the official TCL d...
hoolio
Cirrostratus
Feb 02, 2010I'd agree--it's more efficient to use eq for string comparisons as TCL doesn't have to try to convert the value from a numeric to a string. You could confirm this using a loop of x comparisons using eq versus == using timing (Click here).
Aaron
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