in reply to Array or Hash
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array or Hash
by chrestomanci (Priest) on Jan 21, 2011 at 09:29 UTC | |
by BrowserUk (Patriarch) on Jan 21, 2011 at 09:47 UTC | |
by chrestomanci (Priest) on Jan 21, 2011 at 16:14 UTC | |
by BrowserUk (Patriarch) on Jan 21, 2011 at 16:54 UTC | |
by ahmad (Hermit) on Jan 21, 2011 at 15:41 UTC | |
by BrowserUk (Patriarch) on Jan 21, 2011 at 15:43 UTC | |
by ikegami (Patriarch) on Jan 21, 2011 at 09:46 UTC |