Re: [w3c/webcomponents] [idea] Make use of `observedAttributes` optional (#565)

Agreed, and I wasn't suggesting that. Implementors can whitelist attributes by name once instead of each time so that you'd evaluate only first time it matches the RegExp and from that time on use the list.

In better words: the RegExp filters once the list of attributes.
It'd be like "JIT" so a bit slower, if a RegExp is used instead of an Array, but "_fast as_" after first test.

On specs level it should probably be simpler, but AFAIK specs don't care much about optimisation details.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/565#issuecomment-248276429

Received on Tuesday, 20 September 2016 11:37:12 UTC