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 B764F97F9 for ; Mon, 30 Jan 2012 00:34:45 +0000 (UTC) Received: (qmail 32266 invoked by uid 500); 30 Jan 2012 00:34:45 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 32108 invoked by uid 500); 30 Jan 2012 00:34:44 -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 32100 invoked by uid 99); 30 Jan 2012 00:34:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2012 00:34:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of webdoublefx@hotmail.com designates 65.55.111.88 as permitted sender) Received: from [65.55.111.88] (HELO blu0-omc2-s13.blu0.hotmail.com) (65.55.111.88) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2012 00:34:35 +0000 Received: from BLU162-DS3 ([65.55.111.73]) by blu0-omc2-s13.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 29 Jan 2012 16:34:14 -0800 X-Originating-IP: [82.247.153.175] X-Originating-Email: [webdoublefx@hotmail.com] Message-ID: From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Thomas?= To: References: In-Reply-To: Subject: Re: Flex 5 UIComponent - Behavior Pattern Date: Mon, 30 Jan 2012 01:34:12 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 X-OriginalArrivalTime: 30 Jan 2012 00:34:14.0408 (UTC) FILETIME=[E47C0880:01CCDEE6] Given there is no news on the behavior approach of the UIComponent (I guess some of you should still work on it), I did a quick test last night splitting the IStateClient2 implememtation of the UIcomponent into a StateBehavior, I then ran a test to measure the instatiation time and I've been surprised to see that it was quicker than the original UIComponent. Well, I've been quick and my test is may be not the best to do, I verified that the states, transitions and effects worked fine first and then just instanciated 100000 UIComponents and compared the time it took relative to the original version. It should may be good for the folks doing the same kind of job on the behavior approach at the moment to define a test protocol (time, memory, behavior). May be you can help Alex in that direction, given you already did some tests and measurements on it apparently, it would be nice to see your approach, what do you think, is it possible ? Is there someone arrived to the same finding than me ? #Andres Lozada, I didn't follow the approach you mentioned in my try at the moment but it is the one I thought to try too in a full dev. Frédéric Thomas -----Message d'origine----- From: Alex Harui Sent: Wednesday, January 25, 2012 11:10 PM To: flex-dev@incubator.apache.org Subject: RE: Flex 5 UIComponent - Behavior Pattern > -----Original Message----- > From: Haykel BEN JEMIA [mailto:haykelbj@gmail.com] > Sent: Tuesday, January 24, 2012 11:51 PM > To: flex-dev@incubator.apache.org > Subject: Re: Flex 5 UIComponent - Behavior Pattern > > > This looks very bad. It looks like often used features must be > implemented > through inheritance. > > Well, that's why I say we have to give up on backward compatibility. In my test, the measurement behavior was one of the most expensive 'behaviors'. However, in the current framework, lots of components are unnecessarily measured at startup. We can't change that without breaking backward compatibility. In my whiteboard, I will explore a simpler top-down layout that is more HTML-like. Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui