Closed Bug 1844518 Opened 1 year ago Closed 1 year ago

GeckoView Implement a GeckoServiceTranslationProcess

Categories

(GeckoView :: General, task, P2)

All
Android
task

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jonalmeida, Unassigned)

References

Details

(Whiteboard: [fxdroid][foundation])

We probably need to have a separate process where we load the translation engine and the pair of language models into it.

Requires GeckoView API design.

Component: Browser Engine → General
Product: Fenix → GeckoView
Depends on: 1844521
Blocks: 1844521
No longer depends on: 1844521
No longer blocks: fx-translation-android
Priority: -- → P2
Severity: -- → N/A
See Also: → 1815339
No longer blocks: 1844521
See Also: → 1844521
Whiteboard: [fxdroid][foundation]

Summarizing some additional background for this bug:

  • Translations currently uses a translations engine per-process, which can cause bigger memory footprints.

    • For Android, this could make the Android tab reloading issue happen even more with translations in use.
    • More data on how memory looks with translations on Android would be beneficial (bug 1815340 and bug 1826718)
    • The translations team is looking at moving translations into a dedicated process in bug 1815339
  • For a dedicated process, then this bug 1844518 is the next step for Android after bug 1815339

    • We can add the new translation process GeckoProcessType.java in the AndroidManifest.xml#47-88
    • We will need to determine what behavior we should manage for the new process. We need to ensure it properly unloads and/or is selected by Android as one of the first processes to de-prioritize and also how to gracefully handle the loss of the process.
    • gpu, utility, and IPDL test support are examples of setting up processes this way
Depends on: 1815339
See Also: 1815339
Summary: Implement a GeckoServiceTranslationProcess → GeckoView Implement a GeckoServiceTranslationProcess

Resolving as works for me because bug 1815339 will move translations into a dedicated process and will also manage the process lifecycle. GeckoView managing this process is not needed at this time, but it might be something to consider for future optimizations.

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