Re: [heycam/webidl] Only install @@toStringTag on the prototype (#357)

@bzbarsky Regarding "performance-critical Object.prototype.toString usage", V8 has found it to be a performance bottleneck for some code, for example Angular calls it in a tight loop. This makes me think it'd be hard to gather data on (we currently don't have a way to efficiently collect usage data in optimized code). And also makes me disinclined to assume that no-one is depending on its performance on IDL objects.

The Angular case is definitely a point in favor of a branding API of some sort, but `toString` seems to be working for them for now, as long as it remains fast.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/357#issuecomment-298981004

Received on Wednesday, 3 May 2017 17:34:24 UTC