Its in the plans for tonight. I'll post the results here when I have them. On Wed, May 14, 2008 at 2:31 PM, Gordon Smith <[EMAIL PROTECTED]> wrote:
> I'm not aware of the AVM team actually working on optimizing > getters/setters specifically... they want to optimize performance across the > board. But if it turns out that get foo() was significantly slower than > getFoo(), they'd probably want to fix that given that Flex APIs are biased > towards getters/setters. Have you tried timing get foo() vs. getFoo() > yourself? (I haven't.) > > > > Gordon Smith > > Adobe Flex SDK Team > > > ------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Joseph Curtin > *Sent:* Wednesday, May 14, 2008 11:15 AM > *To:* [email protected] > *Subject:* Re: [flexcoders] Getters/Setters VS Function:Void/Return > > > > So, if I read your response correctly. You guys are working towards > optimizing the getter/setter way of doing things. Good to know. (Event > technically, there is no declared victor as of right now.) > > Thanks Gordon > > On Wed, May 14, 2008 at 1:39 PM, Gordon Smith <[EMAIL PROTECTED]> wrote: > > I actually don't know whether > > > > public function get foo():int > > { > > return _foo; > > } > > > > or > > > > public function getFoo():int > > { > > return _foo; > > } > > > > is faster to call. But I wouldn't expect them to different greatly, and > which one is faster might change in a future version of the Flash Player as > the AVM gets optimized. > > > > So the Flex SDK team designs our APIs with other considerations in mind. We > consider property-based APIs -- rather than method-based ones -- to be best > practice because properties can be expressed declaratively as MXML tag > attributes, and set in property inspectors in authoring tools, while method > calls require ActionScript code. > > > > Gordon Smith > > Adobe Flex SDK Team > > > ------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Joseph Curtin > *Sent:* Wednesday, May 14, 2008 8:34 AM > *To:* [email protected] > *Subject:* [flexcoders] Getters/Setters VS Function:Void/Return > > > > Hey all, > > I took a quick search, but was unable to find info on rather > getter/setters are faster, or functions that return are faster. Care to > enlighten me? > > -- > -Joe > > > > > -- > -Joe > > -- -Joe

