Arrays are faster to access because the supplied index number is used directly to calculate the memory address of the value. Whereas with a hash, the key must be converted (hashed) to a number before the address calculation of the value can be performed.
In reply to Re: Array or Hash
by BrowserUk
in thread Array or Hash
by palanisamy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |