Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Testing for a string value within an array

by state-o-dis-array (Hermit)
on May 03, 2005 at 22:56 UTC ( #453769=note: print w/ replies, xml ) Need Help??


in reply to Re: Testing for a string value within an array
in thread Testing for a string value within an array

If you need to keep the original order, is there any overhead to using Tie:LLHash over using the array? I'm guessing that Tie::LLHash must be using an array, but just provides an interface to work with only the hash?


Comment on Re^2: Testing for a string value within an array
Re^3: Testing for a string value within an array
by revdiablo (Prior) on May 03, 2005 at 23:45 UTC
    is there any overhead to using Tie:LLHash over using the array?

    It depends on what you mean by "overhead". Certainly, there's overhead involved in loading a module. There's overhead involved in installing a module. Depending on how the module is implemented, there's likely overhead involved in using the module. Whether that overhead is worth it or not depends on a lot of factors. But personally, I would stick with a plain dual hash/array approach unless there was a specific reason not to.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://453769]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-11-28 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (200 votes), past polls