Forum Discussion
Robert_Reznicek
Nimbostratus
Apr 15, 2010Assigning array to another array
Hello, is it somehow possible to fill one array (temporary) and then assign this whole array to another array? I would need to do something like this:
set tempArr(x1) "valueA"
set tempArr(x2) "va...
Robert_Reznicek
Nimbostratus
Apr 21, 2010Hi Aaron,
the difference in performance between querying the datagroup directly (using findclass or lsearch) and querying the array is significant. Please see the results:
- datagroup:
+-> HTTP_REQUEST 64 total 0 fail 0 abort
| | Cycles (min, avg, max) = (56620837, 121340405, 183729519)
- array:
+-> HTTP_RESPONSE 64 total 0 fail 0 abort
| | Cycles (min, avg, max) = (62009, 87091, 474018)
I suppose this is because findclass and lsearch must go trough all entries to find a match, but when using my method I'm asking for exact match - determining whether the entry exists:
if {[info exists ::ppass($url)
and assigning the value:
set line $::ppass($url)
Because I didn't find how to use the similar method to ask the datagroup directly, I'm using the array.
Thank you,
Robert
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