### Description Bug 1909632 introduced changes to the mutation observers for Translations, which fixed some long-standing bugs, but have introduced a new impact on performance for Translations. The following steps to reproduce feel like an edge case of triggering multiple translations in a row with auto-translate enabled, however I have noticed the same impact (though less reliably reproducible) when translating only a single page. I have particularly noticed this impact when testing out a `zhen` model and translating content on https://zh.wikipedia.org/wiki/Mozilla_Firefox. --- ### Steps to reproduce > **Note**: > See attached video for example STR on Linux. > > The attached video shows behavior on Linux where hovering the mouse over a hyperlink triggers a translation for that node after the translation has stalled. I have only been able to reproduce this exact behavior on Linux. The slowdown is noticeable on macOS, however mousing over a hyperlink seems to have no effect. I have not tried yet on Windows. 1) Open the browser to a translatable page, e.g. https://es.wikipedia.org/wiki/Mozilla_Firefox. 2) Enable auto-translate for the page language. 3) Click on new hyper links in rapid succession until the page translation is no longer quick. **Expected Behavior** The page translation is fast no matter how many links you click on. **Actual Behavior** The page translation stalls for much of the visible content after clicking on a few links in succession.
Bug 1932780 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
### Description Bug 1909632 introduced changes to the mutation observers for Translations, which fixed some long-standing bugs, but have introduced a new impact on performance for Translations. The following steps to reproduce feel like an edge case of triggering multiple translations in a row with auto-translate enabled, however I have noticed the same impact (though less reliably reproducible) when translating only a single page. I have particularly noticed this impact when testing out a `zhen` model and translating content on https://zh.wikipedia.org/wiki/Mozilla_Firefox. --- ### Steps to reproduce > **Note**: > See [attached video](https://bug1932780.bmoattachments.org/attachment.cgi?id=9439228) for example STR on Linux. > > The attached video shows behavior on Linux where hovering the mouse over a hyperlink triggers a translation for that node after the translation has stalled. I have only been able to reproduce this exact behavior on Linux. The slowdown is noticeable on macOS, however mousing over a hyperlink seems to have no effect. I have not tried yet on Windows. 1) Open the browser to a translatable page, e.g. https://es.wikipedia.org/wiki/Mozilla_Firefox. 2) Enable auto-translate for the page language. 3) Click on new hyper links in rapid succession until the page translation is no longer quick. **Expected Behavior** The page translation is fast no matter how many links you click on. **Actual Behavior** The page translation stalls for much of the visible content after clicking on a few links in succession.
### Description Bug 1909632 introduced changes to the mutation observers for Translations, which fixed some long-standing bugs, but have introduced a new impact on performance for Translations. The following steps to reproduce feel like an edge case of triggering multiple translations in a row with auto-translate enabled, however I have noticed the same impact (though less reliably reproducible) when translating only a single page. I have particularly noticed this impact when testing out a `zhen` model and translating content on https://zh.wikipedia.org/wiki/Mozilla_Firefox. --- ### Steps to reproduce > **Note**: > > See [attached video](https://bug1932780.bmoattachments.org/attachment.cgi?id=9439228) for example STR on Linux. > > The attached video shows behavior on Linux where hovering the mouse over a hyperlink triggers a translation for that node after the translation has stalled. I have only been able to reproduce this exact behavior on Linux. The slowdown is noticeable on macOS, however mousing over a hyperlink seems to have no effect. I have not tried yet on Windows. 1) Open the browser to a translatable page, e.g. https://es.wikipedia.org/wiki/Mozilla_Firefox. 2) Enable auto-translate for the page language. 3) Click on new hyper links in rapid succession until the page translation is no longer quick. **Expected Behavior** The page translation is fast no matter how many links you click on. **Actual Behavior** The page translation stalls for much of the visible content after clicking on a few links in succession.
### Description Bug 1909632 ([push log](https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=8cdd04727200f4b9bee5a44801395a284903fd57&tochange=34b62cca961880f5f9338339b00feb858afd2e52)) introduced changes to the mutation observers for Translations, which fixed some long-standing bugs, but have introduced a new impact on performance for Translations. The following steps to reproduce feel like an edge case of triggering multiple translations in a row with auto-translate enabled, however I have noticed the same impact (though less reliably reproducible) when translating only a single page. I have particularly noticed this impact when testing out a `zhen` model and translating content on https://zh.wikipedia.org/wiki/Mozilla_Firefox. --- ### Steps to reproduce > **Note**: > > See [attached video](https://bug1932780.bmoattachments.org/attachment.cgi?id=9439228) for example STR on Linux. > > The attached video shows behavior on Linux where hovering the mouse over a hyperlink triggers a translation for that node after the translation has stalled. I have only been able to reproduce this exact behavior on Linux. The slowdown is noticeable on macOS, however mousing over a hyperlink seems to have no effect. I have not tried yet on Windows. 1) Open the browser to a translatable page, e.g. https://es.wikipedia.org/wiki/Mozilla_Firefox. 2) Enable auto-translate for the page language. 3) Click on new hyper links in rapid succession until the page translation is no longer quick. **Expected Behavior** The page translation is fast no matter how many links you click on. **Actual Behavior** The page translation stalls for much of the visible content after clicking on a few links in succession.