Scan - Making string manipulation efficient
One of the many things that makes iRules so powerful is the ability to inspect data and break it up into custom variables. You can store whatever information you need in your desired format and put i...
Published Apr 24, 2008
Version 1.0Colin_Walker_12
Historic F5 Account
Joined May 12, 2005
Colin_Walker_12
Historic F5 Account
Joined May 12, 2005
Al_Carandang_11
May 20, 2008Nimbostratus
So would it be safe to say that
scan [HTTP::host] %s.%s.%s prefix host suffix
is more efficient than
set prefix [getfield [HTTP::host] "." 1]
set host [getfield [HTTP::host] "." 2]
set suffix [getfield [HTTP::host] "." 3]
?
Or are the gains negligible?