On Wednesday, October 31, 2001, at 09:17 PM, [EMAIL PROTECTED] wrote:

> just how much of an improvement would I see
> if I convert the object over to a blessed array?
> are arrays significantly faster than hashes
> or just marginally faster?

As noted, there is a gain to be found. How much impact that will have in
your program probably depends on how the code is written, so rules of
thumb like 10% or 15% are a good start, but really the best way to find
out (provided that a rewrite is feasible) is to come up with two 
different
versions and benchmark 'em both. I would think that for anything that has
to be *fast*, arrays should generally be preferred to hashes if possible
(taking the point of view that they're part of the language to assist
programmer efficiency, not computer efficiency...).


--
Chris Devers   /  [EMAIL PROTECTED]  /  [EMAIL PROTECTED]
Apache / mod_perl / http://homepage.mac.com/chdevers/resume/

Reply via email to