The present invention generally provides a method, apparatus, and article of
manufacture whereby source code is analyzed by the compiler to determine if a default
object capacity should change. In one embodiment of the invention, the compiler
determines an initial object capacity based upon the use of a particular consumption
method against an object created in the source code.