[DGD] Re: Probably an FAQ

Gregory D Lewis glewis at maths.adelaide.edu.au
Wed Jun 10 16:48:02 CEST 1998


> > This has probably been asked time and time again but I can't get answers
> > any other way:
> 
> Yes, it's been asked before.  Greg, care to add it to the FAQ or is it
> there already? :-)

I'm happy to add it to the section on the auto object.

> I'll quote you Dworkin's answer:
> <quote>
> There is an obscure cost associated with functions in the auto object
> that are neither static nor private: all such functions have a cost of
> two bytes a piece in <every> inheriting object's program.  This is also
> true for non-private functions in all other (i.e. non-auto) objects.
> 
> Normally, this is not much of a problem.  However, if you were to have
> 200 such functions in the auto object, every other program in the game
> but that of the driver object would become 400 bytes larger.
> </quote>

I believe Dworkin also stated that the function lookup overhead is constant
no matter how many functions are in the auto object.  

Please correct me if I'm wrong :).

-- 
Greg Lewis                              Applied Maths Department
Email : glewis at maths.adelaide.edu.au    University of Adelaide
--
"His super power is to turn into a scotch terrier."



List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list