Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1EB9E9562 for ; Thu, 5 Apr 2012 13:30:33 +0000 (UTC) Received: (qmail 80993 invoked by uid 500); 5 Apr 2012 13:30:32 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 80958 invoked by uid 500); 5 Apr 2012 13:30:32 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 80949 invoked by uid 99); 5 Apr 2012 13:30:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2012 13:30:32 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cframpto@adobe.com designates 64.18.1.181 as permitted sender) Received: from [64.18.1.181] (HELO exprod6og101.obsmtp.com) (64.18.1.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2012 13:30:23 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob101.postini.com ([64.18.5.12]) with SMTP ID DSNKT32eWW2yWo19PoFKiCKKHuxots5tBKS6@postini.com; Thu, 05 Apr 2012 06:30:03 PDT Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q35DRuJ0018589 for ; Thu, 5 Apr 2012 06:27:56 -0700 (PDT) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q35DU1vm011652 for ; Thu, 5 Apr 2012 06:30:01 -0700 (PDT) Received: from nambx09.corp.adobe.com ([10.8.189.47]) by nacas02.corp.adobe.com ([10.8.189.100]) with mapi; Thu, 5 Apr 2012 06:30:00 -0700 From: Carol Frampton To: "flex-dev@incubator.apache.org" Date: Thu, 5 Apr 2012 06:29:57 -0700 Subject: Re: performance issues of tab movement in s:DataGrid of Flex 4.6 Thread-Topic: performance issues of tab movement in s:DataGrid of Flex 4.6 Thread-Index: Ac0TMDNGg8mBewlESc+dk3NUGSe3Yw== Message-ID: In-Reply-To: <3A870C49-4444-4FC8-B625-623CB59D7DC8@classsoftware.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.14.0.111121 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 One of you is talking about s:DataGrid and one of you is talking about mx:AdvancedDataGrid. Not sure it is the same issue. Carol On 4/5/12 9 :15AM, "Justin Mclean" wrote: >Hi, > >There a known issue with invalidateNow being call too often in the ADG. >Once we have Mustella I have a patch that can be applied. > >Thanks, >Justin > >> Hello >>=20 >> I found an issue on item editors movement by TAB key. >> In mx:DataGrid, it moves quickly. However, I feel it's slow in >>s:DataGrid. >> I investigated source of classes related with s:DataGrid a little. >>=20 >> I found three factors. >>=20 >> 1) s:GridItemEditor uses s:TextArea >> 2) grid.focusManager.getNextFocusManagerComponent takes dozens of >> milliseconds in editor_keyFocusChangeHandler function of >> s:DataGridEditor >> 3) it calls the validateNow method in do while loop at >> ensureCellIsVisible function of s:Grid >>=20 >> We can avoid 1) by using custom light-weight editor. But we can't >> avoid 2) and 3). >>=20 >> Why is 2) needed? >>=20 >> It takes 10% of CPU resources at each TAB key movement of itemEditors >> because the validateNow is called. >> When I comment out 3), the focus moves incorrectly at rendererIsEditor >>column. >> However, there should be other ways without calling validateNow. >>=20 >>=20 >> thanks >>=20 >> Shigeru Nakagaki >