I remember that someone is telling me a good but I can not remember it. I've spent the last 20 minutes with Google to learn more.
Examples of bad / no great codes that affect performance due to garbage collection?
public class stack {Private Static Final Inc. MAXLEN = 10; Private object stk [] = new object [MAXLEN]; Private int stkp = -1; Public Zero Push (Object P) {stk [++ stkp] = p;} Public Object Pop () {return stk [stkp--];}} Pop method again Writing thus helps ensure that garbage collection is done at one time:
public object pop () {object p = stk [stkp]; Stk [stkp--] = null; Return p; }