frothing : Java Glossary


When an algorithm or method creates millions of tiny temporary objects. They overwhelmn the garbage collection system. You may discover this is happening when you profile to find out why your program is grinding along with frequent gc.

One classic frothing example is:

// Get color of one point.
// A side effect is internally creating an object for the pixel,
// which when you do that repeatedly, causes frothing.
 int rgb = bufferedImage.getRGB( x, y );

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
no blog for this page
Your face IP:[]
You are visitor number