Chris_Miller
Aug 20, 2010Altostratus
Most efficient way to log?
HTTP::cookie insert name "test" value [class search -value test eq [IP::server_addr]] path /
log local0. "inserting cookie for test [class search -value test eq [IP::server_addr]] since server was [IP::server_addr]"
or
set test [class search -value test eq [IP::server_addr]]
HTTP::cookie insert name "test" value $test path /
log local0. "inserting cookie for test $test since server was [IP::server_addr]"
I know I can use "timing" to find out but am curious whether there's hard and fast rules as to when it's useful to set a variable vs doing multiple data group comparisons, etc.