Re: Size of arrays in UIComponentClassicTagBase.addChild and addFacet

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Mon, 20 Aug 2007 10:16:45 -0700

Adam Winer wrote:
> Checking out some heap profiles, I noticed a profusion
> of 136 byte object arrays coming from UIComponentClassicTagBase.
> Seems that addChild() is defaulting the size of its
> array to 32 elements. Anyone know why that number was chosen?
> UIComponentBase is letting its ArrayList of children default
> to 10, and even that probably overstates the average. But
> the two numbers should match, IMO.
> addFacet() is letting the facets ID list default in size,
> which means 10 - I think it's a rare component that has > 2 facets
> in use at any one time. UIComponentBase lets this map default
> in size, which gives us the unnecessarily large size of 16.
> OTOH, in practice, the vast majority of components have no
> facets at all, so these objects aren't created - it's
> the child list that is of concern.

It looks like Roger logged
to have this issue addressed.

We'll get it in for _05.

> -- Adam
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail: