Thread: pointer help
View Single Post
Old Apr 1st, 2006, 4:31 PM   #38
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5 grumpy is on a distinguished road
Quote:
Originally Posted by DaWei
An simple array uses less storage because the pointer is implicit in the index. A gig of entries is probably going to live in mass storage, which reduces the concern over precise in-memory method, anyway.
Not necessarily. I've lost count of the number of times I've seen designs that involve keeping several million objects in memory are proposed as the "obvious" solution, when (in fact) smarter schemes to extract objects from mass storage when needed actually make more sense. All because the designer can't be bothered nutting out a smarter access scheme.
grumpy is offline   Reply With Quote