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.