home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!darwin.sura.net!ukma!psuvax1!psuvm!mkk2
- Organization: Penn State University
- Date: Wed, 9 Sep 1992 15:28:36 EDT
- From: <MKK2@psuvm.psu.edu>
- Message-ID: <92253.152836MKK2@psuvm.psu.edu>
- Newsgroups: comp.sys.next.programmer
- Subject: Re: Object size and limits
- References: <28935@sophia.inria.fr>
- Lines: 20
-
-
- In article <28935@sophia.inria.fr>, kjartan@kurosawa.cica.fr (Kjartan Emilsson)
- says:
-
- >How can you estimate the memory usage of an instance of an object in a
- >program, beside using NXWriteObject and looking at the file size ? Is it
- >the size of the declared instance variables plus method selectors, or are
- >there some additional headers ? Are there any limits to the number of
-
- As I understand it, instances are essentially structs, so sizeof
- tells you pretty much what you want to know. Yes, the code for
- the methods and the selector tables require some overhead, but they
- are not duplicated for each instance.
-
- >I'm thinking of order of magnitudes like about 5000 instances of 500+
- >classes/categories.
-
- If you feel comfortable that your design really needs 500 classes, I don't
- forsee any bottleneck. 5000 instances should be no problem.
-
-