Bug 1456035 added a ChromeUtils.generateQI helper to create
QueryInterface methods for JS objects. The QueryInterface methods
generated by this function are highly optimized, and have a fast path
for calls from XPConnect.
Which is to say, please use this method rather than manually writing
your QueryInterface functions, or using XPCOMUtils.generateQI.
QueryInterface methods tend to be very hot code, and all of the extra
overhead from JS implementations adds up fast.
-Kris
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform