Article View: borland.public.jbuilder.java.language
Article #485Re: Minimum object data size
From: Lori M Olson [TeamB]
Date: Tue, 19 Apr 2005 15:22
Date: Tue, 19 Apr 2005 15:22
53 lines
3191 bytes
3191 bytes
Vander wrote:
> I want to assess some implementation details, some which can be
> expected to be common among the major VM implemetatons (for default I
> am referring to the Win32 implementation).
>
> A good programmer is interested to know what he really invokes when
> allocating a new object. For example the minimum data size that an
> instance of a type consumes on the heap. Perhaps the question can be
> transformed into "what is the minimum size of data allocation blocks
> on the heap?". I have looked into the VM documents but found nothing
> about this because it is undefined. - So does somebody know about
> what the real practice is? Or where can I go to look for more
> information?
>
> Thanks! - Vander
1. You really do not need to know this stuff, unless you are working
with embedded systems. And if you are working with embedded systems,
then you would have all the documentation you needed already.
2. But, if you insist, there are lots of tools to help you profile your
application. If you are using Developer or Enterprise edition, you will
already have a built-in copy of OptimizeIt, so I suggest you use that.
If you are using Foundation, you will want to check out some freebies.
I found this page which is only 6 months old, so it should be up to date:
http://www.manageability.org/blog/stuff/open-source-profilers-for-java/view
Last, but not least, let me inflict MHO on you... DON'T optimize for the
sake of optimizing. Define some reasonable metrics, figure out how to
test against those metrics, and then DON'T bother optimizing until those
tests start to fail. Otherwise you'll just be screwing around wasting a
bunch of time.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<4265225b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4264ce92$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,711dc38c4ee1168f X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 19 Apr 2005 09:22:33 -0600 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax;nscd1) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: Minimum object data size References: <4264ce92$1@newsgroups.borland.com> In-Reply-To: <4264ce92$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <4265225b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1113924187 142.179.181.200 (19 Apr 2005 08:23:07 -0800) Lines: 53 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail