Are frozen Objects faster ?

Herby Vojčík herby at
Thu Feb 14 10:09:04 PST 2013

Kevin Gadd wrote:
> Frozen and sealed objects are both dramatically slower in most JS
> engines I've tested. In the ones where they're not dramatically slower
> they are never faster.
> The last time I asked on the mozilla and v8 bug trackers I was
> informed that there is no plan to optimize for these features and that
> the design of the respective JS engines would make such optimizations
> difficult anyway.
> (I find this extremely unfortunate.)

I, on the other hand, find it fortunate. Otherwise, some people would 
prematurely freeze objects to gain speed. It would be same 
<del>disaster</del> akwardness as v8 did with removing `delete` in 
favour of `= null`.


> -kg

More information about the es-discuss mailing list