performance - How to fix java intermittent lags? -


the same code in project has different execution duration same input parameters, varies 1ms 30ms.

private void link(array values, area area){    values.add(area);    array<area> children = area.getchildren();    (int i=0; i<children.size; i++){        area child = children.get(i);        link(values, child);    } } 

this lags inappropriate. can fix them?

intermittent lags caused garbage collection.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -