federico-lox/micro-JS — comment on commit a2d1f222c1649d723899ce239de67a073a363517
File: src/m.js line 123
By federico-lox:

I suggest not using mm(xxx, m.ANY) and call directly d.querySelectorAll(xxx);

Calling mm involves proxying the call to another function at least one time, that is where probably part of the overhead comes from.

May I also suggest to change the function name in .matchesSelector? (and add a OR check for that too so when the other browsers' implementation will converge our implementation won't be called automatically)