Are frozen Objects faster ?
rossberg at google.com
Thu Feb 14 10:38:38 PST 2013
On 14 February 2013 19:26, Herby Vojčík <herby at mailbox.sk> wrote:
> I meant "de facto". People wanting to remove property bar from foo do not
> write `delete foo.bar` anymore; they (at least some significant subset) have
> learned to write `foo.bar = null;` or `foo.bar = undefined;`. The reason is
> perf - `delete` deoptimized hidden classes.
And with ES6, those people will hopefully realise that for those
cases, using a Map is a cleaner alternative anyway.
More information about the es-discuss