This actually speeds up object instantiation by 2x in a benchmark I've ran.


On Thu, Jul 11, 2013 at 6:05 AM, Nick Santos <notifications@github.com>wrote:

> In kew.js:
>
> >    this._successFn = onSuccess
> >    this._failFn = onFail
> > -  this._hasContext = false
>
> are you sure that removing these 3 lines makes things faster? the v8
> people usually say to declare all the properties in the ctor, so that there
> are fewer possible hidden classes. see:
> http://www.html5rocks.com/en/tutorials/speed/v8/#toc-topic-hiddenclasses
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Obvious/kew/pull/12/files#r5139625>
> .
>