Re: Organizing data for readability and efficiency
- From: Mark Seger <Mark.Seger@xxxxxx>
- Date: Thu, 18 Aug 2005 16:30:59 -0400
If you are considering making the choice between arrays and hashes based on the performance of single look-ups into each (rather than by whether the nature of your data best fits an array or best fits a hash), then I say you are engaging in micro-optimization. Perhaps this is the nub of your question, so let me repeat. The difference between array access and hash access is small enough that if you are concerned about it, only actual tests on actual data will be satifactory.
Let me try again, I'm not concerned about the performance of single lookups, I'm concerned with at least hundreds of thousands. I was hoping for a simple answer but if that's not going to happen I also agree with you that the real answer is to measure it and I guess that's what I'll end up doing.
-mark
.
- Follow-Ups:
- Re: Organizing data for readability and efficiency
- From: Tad McClellan
- Re: Organizing data for readability and efficiency
- From: xhoster
- Re: Organizing data for readability and efficiency
- References:
- Organizing data for readability and efficiency
- From: Mark Seger
- Re: Organizing data for readability and efficiency
- From: xhoster
- Re: Organizing data for readability and efficiency
- From: Mark Seger
- Re: Organizing data for readability and efficiency
- From: xhoster
- Organizing data for readability and efficiency
- Prev by Date: Re: How to "unuse" Perl modules
- Next by Date: Readonly + Exporter
- Previous by thread: Re: Organizing data for readability and efficiency
- Next by thread: Re: Organizing data for readability and efficiency
- Index(es):
Relevant Pages
|