mdj wrote:
On Jul 2, 11:23 am, "Michael J. Mahon" <mjma...@aol.com> wrote:With object orientation comes a surplus of indirection. ;-)At least you stopped short of saying that's a bad thing ;-)
From the point of view of speed, *avoidable* indirection is a *very* bad thing. Memory latency is hundreds of processor cycles, at least. With good data organization, reasonable cache design, and a compiler that can prefetch object instances before use, much of the *simple* indirection cost can be amortized, but compiler designers tend to be relatively ignorant of what machines must actually *do* to execute their code. ;-( -michael NadaNet file server for Apple II computers! Home page: http://members.aol.com/MJMahon/ "The wastebasket is our most important design tool--and it's seriously underused."