`SuggestionFetcher` creates 7 threads – can we re-use existing threads?
Categories
(Firefox for Android :: Toolbar, task)
Tracking
()
People
(Reporter: csadilek, Unassigned)
Details
From github: https://github.com/mozilla-mobile/android-components/issues/11177.
The search
SuggestionFetchercreates a newExecutorServicewith a thread for each provider:In the current implementation, there appear to be 7 providers – https://share.firefox.dev/3E4PbEk – so we're creating 7 threads. (fwiw, the old provider used 3). Given these threads will be largely idle and some of these providers don't do IO, this seems excessive: are there other threads we can re-use to conserve resources? For example, could we use the IO dispatcher? Given the only thing on this screen is searching, it seems unlikely that that dispatcher will be at capacity. Also, there's a thread pool for the top sites icons that's likely inactive now – can we share those threads?
That being said, I'm not sure what and how many resources idle
ExecutorServicethreads take up. Do they use CPU? How much memory do they use? How does sharing (or not sharing) threads affect cache locality?┆Issue is synchronized with this Jira Task
Change performed by the Move to Bugzilla add-on.
Comment 1•3 years ago
|
||
The severity field is not set for this bug.
:cpeterson, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Updated•3 years ago
|
Description
•