I don't think the empty constructors will have a performance impact. The way we create classes in JavaScript, a constructor is required because that's where the prototype is stored, so it will be generated anyway. In SWF, I believe I remember reading that it's similar: bytecode is still generated by the compiler when the constructor is omitted.
- Josh On Tue, May 23, 2017 at 3:22 AM, Justin Mclean <jus...@classsoftware.com> wrote: > Hi, > > We seem to have a number of empty constructors in the SDK. Is there any > reason for this as? Performance wise there’s going to be a cost with this. > > On the other hand we also have a number of constructors that are not light > weight. AS doesn’t JIT code in constructors so best practice is to move the > code to a another method and call it from the constructor. Any reason this > isn’t being done? > > Thanks, > Justin