Article View: comp.sys.next.programmer
Article #900Re: Object size and limits
From: MKK2
Date: Wed, 09 Sep 1992 19:28
Date: Wed, 09 Sep 1992 19:28
19 lines
1205 bytes
1205 bytes
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.
Technical Details
Message-ID:
<92253.152836MKK2@psuvm.psu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!darwin.sura.net!ukma!psuvax1!psuvm!mkk2References:
<28935@sophia.inria.fr>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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