Do you know where your variables are? | |
PerlMonks |
Re^3: Data structures benchmark(pack vs. arrays vs. hashes vs. strings)by BrowserUk (Patriarch) |
on Dec 10, 2011 at 01:08 UTC ( [id://942755]=note: print w/replies, xml ) | Need Help?? |
the purpose is to take a string, split it and store it in memory in such a way that you can pass it around and not need to split it again when receiving it in some other part of the program. Then nothing will be as fast as constructing an array of arrays and passing a reference to it around. It could not be so. Reading between the lines, your main problem seems to be that yoo are inisting on copying the subarrays to local named scalars each time before using them, rather than just using them in-situ. Ie. You are doing something like:
When you could be doing:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|