Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8D243200B66 for ; Thu, 4 Aug 2016 02:58:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8BA5F160A8C; Thu, 4 Aug 2016 00:58:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D4ADC160A86 for ; Thu, 4 Aug 2016 02:58:57 +0200 (CEST) Received: (qmail 14001 invoked by uid 500); 4 Aug 2016 00:58:57 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 13989 invoked by uid 99); 4 Aug 2016 00:58:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2016 00:58:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1EE41186E14 for ; Thu, 4 Aug 2016 00:58:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.068 X-Spam-Level: X-Spam-Status: No, score=-0.068 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=classsoftware-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id s7c5ca1xFw9a for ; Thu, 4 Aug 2016 00:58:55 +0000 (UTC) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 51FF55F3A0 for ; Thu, 4 Aug 2016 00:58:54 +0000 (UTC) Received: by mail-pa0-f52.google.com with SMTP id iw10so78457882pac.2 for ; Wed, 03 Aug 2016 17:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=classsoftware-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=P/Ojj/P2XnOS94RUcULv/60XXbjbmBlDy+LPNQ4kzc8=; b=QQjFUYNQWd4ONcCCWZKCsr1BxGF076ouNHiO5PTtp0zQWZD869Bt5u71p+gWj/Gqyh yBVarFoTIKl1F0moDLfJReVQqqpYCp+7dnBd1z8ClvRh+k1B3mqI0pJZbmNWmAVs4r9d ek3ReWzARBxrmB1VGO5Eo3EfH8T9a/UBW5ZNSat5k2ASvt+WEg1sLoNEwUdkt2hFkwDO qgwxQdX3x/ZT4utrWZCepPOzS6+bgawf6Zl/DHVCm6ormF1aI5prxE7pTYvltasZB1hc jbkNFdc6cu1jERPcRKdchwOkhwnetUcq9OGGPYjPl0v3MA3PpI4pzfne+bxfoT6LYxih y1SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=P/Ojj/P2XnOS94RUcULv/60XXbjbmBlDy+LPNQ4kzc8=; b=AlOTf2JeUhVrw0x/4ofkLSAGjmMaXtZ2YzeQllcpO0dbAxDnKBltI8xXlaXwTrUkv6 OGprftXqKEYIjZA8785gtHfPXZQJGqYWmes5tlsQ41p92ehMI0twyi5o3GtYj7qMrpzO PG9Wrd1w1zW2fZ1UYWJQAe5bGzzSRdl6JriRGlKK5sVWktBqpYi/RBK2CqGQTMsXy3tl 025DEoVvMOwG18kfyxbrs1vaBWeaETuQxAsxm+cZndtbI2FSpCwGi0Pn3ll9ruvoEIqT iymnCz4W5G7IaWOdKtemxLO62qwjB1YDfhmTN07QtuHQqg3i2WJ/M6G363VjA0yt7Xzt hDWQ== X-Gm-Message-State: AEkoousvneInapeQzKUnhg84LRKQ5KlTg56HUkwH4gY1R4Rabav5HSxISM2lph2DtbyQ9g== X-Received: by 10.66.161.132 with SMTP id xs4mr120051023pab.140.1470272332787; Wed, 03 Aug 2016 17:58:52 -0700 (PDT) Received: from [192.168.0.4] (ppp121-44-253-33.bras2.syd2.internode.on.net. [121.44.253.33]) by smtp.gmail.com with ESMTPSA id wp4sm15357861pab.15.2016.08.03.17.58.50 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Aug 2016 17:58:51 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Workers and Speed From: Justin Mclean In-Reply-To: <1470268742836-13202.post@n4.nabble.com> Date: Thu, 4 Aug 2016 10:58:46 +1000 Content-Transfer-Encoding: quoted-printable Message-Id: <2372C024-D661-46A0-9262-390F565C59F9@classsoftware.com> References: <1470115457325-13140.post@n4.nabble.com> <1470119982583-13145.post@n4.nabble.com> <652C6516-F32C-4560-9EE1-BBEFADA08DA4@classsoftware.com> <1470154051521-13154.post@n4.nabble.com> <1470189870300-13158.post@n4.nabble.com> <1470260122246-13192.post@n4.nabble.com> <98A8810B-7D83-4BDD-A9C2-CF8542731A47@classsoftware.com> <1470268742836-13202.post@n4.nabble.com> To: users@flex.apache.org X-Mailer: Apple Mail (2.3124) archived-at: Thu, 04 Aug 2016 00:58:58 -0000 Hi, > If i compare record 20 to record 1030 and find them to be comparable = and > decide to calculate the distance between them, then why should i = recompare > record 1030 to 20 when the time comes in the loop? Correct theres no need to. > So if I stored the distance in a huge 38k x 38k array(or > vector), and the first thing I check is if a distance has been = recorded in > this array No need to do that. All you need to do is alter the loop as I suggested and then when you = update the array for i also update the array for j as well. > Do you think it is worth trying this scenario?=20 Well up to you but it will half the time it takes to run so yes. Thanks, Justin=