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 6E70A200B59 for ; Mon, 25 Jul 2016 06:48:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6D103160A87; Mon, 25 Jul 2016 04:48:57 +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 B40F7160A74 for ; Mon, 25 Jul 2016 06:48:56 +0200 (CEST) Received: (qmail 32033 invoked by uid 500); 25 Jul 2016 04:48:55 -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 32021 invoked by uid 99); 25 Jul 2016 04:48:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2016 04:48:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0E3FBC6642 for ; Mon, 25 Jul 2016 04:48:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.049 X-Spam-Level: X-Spam-Status: No, score=-0.049 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ZTw0yUkUu3te for ; Mon, 25 Jul 2016 04:48:52 +0000 (UTC) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 100235FAE8 for ; Mon, 25 Jul 2016 04:48:52 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id fi15so57307908pac.1 for ; Sun, 24 Jul 2016 21:48:51 -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=eEnjPCNbfoM+cwekQue6rZ3eTydZY254mxkCHrpH0bI=; b=mracjGAF1J888gmMIXeUIgGLD2lPnC2f8fhPQMWwXWg+cavUGpD162eWsjLdCRkPOU U/PgPISqFIJIg1IvL1Qo2RaX9Sn8f6h/cHscfRR+BFxdKU/npvdOfqZMeOjp8TuGMOCT iUqV6AxIb6mN6M9OMiiAtfwf4XtwTZNRv8SeQ0sKdvVFcLMogoJaFUjCJyZEI8prHtQ3 HsyIrJcKeKUhb7JFAbGJEvRD36KwUn9ZA47CweLlxxD+lZ7fBjeMY/2WZSyGO9ZkvN9x 1FGrO5jFLpoBsfPKDvSLRea5dLy2zv8Od7ji6Q13ahnEqwX058IJ6jZcZX6bTD8WL8dx wk5A== 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=eEnjPCNbfoM+cwekQue6rZ3eTydZY254mxkCHrpH0bI=; b=N0mSOe5pYK8Dc7yiqX2tkwp4bkdIRtshH8oafAdcd01g6bCb60oxRDaSamRExnpVvP q4vEa1uUSklXMbbEY3mrO364sGlKDyXkguzDqTpeniqIwdxJUx7u4SBRrf3StdG0H5Tl ahzSbb1NcfxItozFzoz/jxY0SjZDB4Vo15S8wY+OEUh3rIhrR0tUm4LgkpqOVbtsKoQF 16OW6kC1TiuiKL0+WEmWpmp4H6tIj8gdXpd1Sknt7Mr7xq94hGarKqKUy2G5CKyKFLyP DcC5x0AjrdsyTDlJ6bSJRm3GnTsmbjUKUkWeK5q8qkDTNiWhC3dYTcLnW7+ubVCIFpKW xPhA== X-Gm-Message-State: AEkoouvWQMYBx0cyVIaqESDv82b9Z58weD2+SBQW9DMZ6ERjfJ05fZOhL+Vt6/HzbHFcSQ== X-Received: by 10.66.227.101 with SMTP id rz5mr26111221pac.81.1469422124565; Sun, 24 Jul 2016 21:48:44 -0700 (PDT) Received: from [192.168.0.4] (ppp121-44-226-68.bras2.syd2.internode.on.net. [121.44.226.68]) by smtp.gmail.com with ESMTPSA id zq7sm36073719pac.6.2016.07.24.21.48.42 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 24 Jul 2016 21:48:43 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Why are Spark Datagrid headers sorting my data so slowly in Air? From: Justin Mclean In-Reply-To: <1469417867983-13040.post@n4.nabble.com> Date: Mon, 25 Jul 2016 14:48:39 +1000 Content-Transfer-Encoding: quoted-printable Message-Id: <1749CCDD-3CD1-49FD-894E-E18DEC6B1A7D@classsoftware.com> References: <1469259725098-13029.post@n4.nabble.com> <1469306104307-13031.post@n4.nabble.com> <1469405589462-13034.post@n4.nabble.com> <1469406790623-13036.post@n4.nabble.com> <399C3066-6172-4BE3-8584-829310842698@classsoftware.com> <1469412556517-13038.post@n4.nabble.com> <1469417867983-13040.post@n4.nabble.com> To: users@flex.apache.org X-Mailer: Apple Mail (2.3124) archived-at: Mon, 25 Jul 2016 04:48:57 -0000 Hi, > I store the dates in my database as integers, and then convert it to = simply days in my dataprovider > arraycollection when I populate it, so it should not be a complex = object.=20 Do you have any formatters? I see you do below, so in that case it will = be called (for every item) when sorting. Adding a custom sort function = to sort on the raw values rather than the formatted ones should improve = that. Assuming the sort order still makes sense. > The only other thing that I did is I converted all of the objects in = my > ArrayCollection to objectProxies I think (but not tested obviously) you'll find much better performance = if you don=E2=80=99t use Object/ObjectProxy but create a (non dynamic) = named class with named bindable properties. > I have installed Scout if there is anything in particular that you = would > like to see. Just look at the self times and see where the majority of time goes. = That should be a good start to track down the issue and more importantly = test things as you make a few changes. It looks to me like the sorting is only taking 25% or so of the time so = there may be something bigger in there? Sorry it=E2=80=99s hard to tell = from a just couple of screen shots, others may have better insights than = me. Thanks, Justin=