Matthew Kerwin wrote in post #1123547:
> Then I was wondering about the storage and retrieval characteristics of
> an Array vs a Hash.  I wish I'd committed my code before the weekend, it
> appeared that the Hash outperformed the Array slightly, although of
> course it's hard to come up with a meaningful benchmark since Fibonacci
> numbers aren't often used in real applications.

Well, in some other languages, such as JavaScript and Lua, there is no
Array; "array" is constructed using a Hash.  Of course, if you are used
to with languages such as C, you always think that in a compiled
language, Array (direct access) should perform better than Hash.

Regards,

Bill

-- 
Posted via http://www.ruby-forum.com/.