On 2/20/17, 1:13 AM, "Harbs" <harbs.li...@gmail.com> wrote: > >Yes and no. There’s two issues: Runtime performance, and minified code >size. In terms of runtime performance, initializing class values should >not have a negative effect. They would (slightly) add to code size, but >having to load two different models in your app would add even more.
I would encourage you to replace every model with the model that has some initialized values so there isn't two different models in the app. That's why we pull in default models from CSS. Hopefully no model is wired in. And of course, the fastest and smallest solution is to just initialize the few instances variable when you need it. Thanks, -Alex