Re: [whatwg/dom] Simple EventListenerOptions feature detection (#491)

Oh and as I understand it, @cramforce's performance concern is that in large systems you really don't want each independent module creating GC pressure by allocating memory during initialization just for feature detection.  Maybe returning a new dictionary is a bad thing by that metric?

I guess I'd rather not introduce another one-off pattern if the rough pattern used by `getSupportedConstraints` isn't good enough.  But maybe as the interim solution it's fine. Presumably some day we'll have a generic solution in WebIDL and use of these ad-hoc feature detection APIs can be discouraged.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/491#issuecomment-321998274

Received on Saturday, 12 August 2017 18:35:23 UTC