disabling concurrency in new sort since that is not working yet correctly

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7843 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent 62ac73a108
commit 48b78e9ff4

@ -90,7 +90,7 @@ public class Array {
public static <A> void sort(final Sortable<A> x) {
UpDownLatch latch;
final boolean threaded = x.size() > 100000;
final boolean threaded = false;//x.size() > 100000;
sort(new SortJob<A>(x, 0, x.size(), x.buffer(), 0, latch = new UpDownLatch(0)), threaded);
//for (int i = 0; i < 100; i++) {System.out.println("latch = " + latch.getCount());try {Thread.sleep(10);} catch (final InterruptedException e) {}}
if (threaded) try {latch.await();} catch (final InterruptedException e) {}

Loading…
Cancel
Save