You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace ArrayList with synchronized list (avoiding thread collisions):
// ArrayList fitResults = new ArrayList();
List fitResults = Collections.synchronizedList(new ArrayList());
Remove progress code with Thread.sleep which was evidently intended to minimize thread collisions. This speeds up ParallelSliceFitter by at least x10.
fitResults are filled from slice threads and therefore not in ascending bin sequence. Resort:
fitResults.sort(Comparator.comparing(FitResults::getPoint));
The text was updated successfully, but these errors were encountered:
Three suggestions:
Replace ArrayList with synchronized list (avoiding thread collisions):
// ArrayList fitResults = new ArrayList();
List fitResults = Collections.synchronizedList(new ArrayList());
Remove progress code with Thread.sleep which was evidently intended to minimize thread collisions. This speeds up ParallelSliceFitter by at least x10.
fitResults are filled from slice threads and therefore not in ascending bin sequence. Resort:
fitResults.sort(Comparator.comparing(FitResults::getPoint));
The text was updated successfully, but these errors were encountered: