Closed Bug 1816771 Opened 1 year ago Closed 1 month ago

Initial fetch of translations models takes longer 10x on Linux than on macOS

Categories

(Firefox :: Translations, defect, P3)

x86_64
Linux
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: nordzilla, Unassigned)

References

Details

Description

When opening the about:translations page and loading models on my macOS machine vs. my Ubuntu machine, I notice a significant difference in the time it takes to build the TranslationsEngine when fetching un-cached model and wasm data from remote settings.

On macOS the entire process takes about 1 second on the initial fetch.
On Ubuntu the entire process takes upwards of 10 seconds on the initial fetch.

While the user experience will be made better in Bug 1814168 by communicating to the user that the models are being downloaded, a 10x difference in performance between the two systems seems worth investigating.


Steps to Reproduce

  1. Launch Firefox on a clean build.
  2. Enable browser.translations.enable in about:config.
  3. Navigate to about:translations.
  4. Type "This is a test." into the left-side English text box.
  5. Switch the right-side language to Spanish by selecting it in the dropdown menu.
  6. Observe how long it takes for the translation to load.

Profiles

Here are two profiles, one from macOS and one from Ubuntu, testing the exact same steps to reproduce on a fresh build. The Ubuntu profile takes roughly 10x longer than the macOS profile for the network requests to finish.

Both profiles were captured on the same day, connected to the same WiFi network.

macOS Profile
https://share.firefox.dev/3I1PNhr

Ubuntu Profile
https://share.firefox.dev/40WrBFT

No longer blocks: 1820240

I occasionally get behavior where the attachments take ~3-5 seconds to load for no apparent reason. I have profiled and not seen any reason why. I have a local profile where it was reproducing. This still seems like an area worth investigating.

No longer blocks: fx-translation

I don't know that we can consistently reproduce, so I'm making this not block release.

No longer blocks: 1820214

Have you seen this again :nordzilla? Can we close?

Flags: needinfo?(enordin)

This is still the case in my general observed usage on Linux and macOS on the same Wi-Fi network.

I think it's still worth investigating.

Flags: needinfo?(enordin)

I'm going to close this as we haven't gotten any other reports of issues like this, and no solid steps to reproduce.

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.