zotero/translators — comment on commit 67c5c2057baa79d34e4c0028a37809d5c66c67b2
File:  line 0
By simonster:

We currently don't clear the sandbox at all between detection with different translators, or between detection and translation. While we could, it would increase detect overhead by a factor of 3 as things are currently coded now, which might be noticeable on pages with lots of iframes. (It adds up to about 81 ms on Amazon.com on my machine.) We could potentially mitigate this by speeding up sandbox construction, merging the 4 translators that run on every page into 1, or by breaking getTranslatorObject() in the translators where it's used without exports.