Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

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

orbiter48b78e9ff436
diff --git a/source/net/yacy/kelondro/order/Array.java b/source/net/yacy/kelondro/order/Array.java
index 2b61afdb1..0c9def3e1 100644
--- a/source/net/yacy/kelondro/order/Array.java
+++ b/source/net/yacy/kelondro/order/Array.java
@@ -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) {}