flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Dove <greg.d...@gmail.com>
Subject Re: [FlexJS] hard coded event names
Date Wed, 24 May 2017 01:43:40 GMT
Harbs, I think that is only for debug. I don't think they should add bulk
to the release code. At least they do not in the default settings for GCC
optimisation. You will see the definition of the constant only once and
inline replacement is used for the value (with a short name global
variable) everywhere. The only extra cost of a constant seems to be a
lookup reference that may be added. It seems quite minimal.

If you do a search for both the constant value e.g. 'change' or the the
name of the constant (e.g. FORM_SAVED ) in the release output you should
only ever see it once whichever way you do this.

On Wed, May 24, 2017 at 1:28 PM, Harbs <harbs.lists@gmail.com> wrote:

> Huh? Why would tests be necessary?
> Like I already said; constants add much more bulk to the JS source code.
> Try it and you’ll see…
> > On May 23, 2017, at 5:53 PM, Justin Mclean <justin@classsoftware.com>
> wrote:
> >
> > Have you done any tests to show this is the case?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message