Importing Saved Form History data is slower on low-end computers
Categories
(Firefox :: Migration, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr102 | --- | unaffected |
firefox113 | --- | unaffected |
firefox114 | --- | verified |
firefox115 | --- | verified |
People
(Reporter: atrif, Assigned: mconley)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
532.76 KB,
image/gif
|
Details | |
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details | Review |
Found in
- 114.0b3
Affected versions
- 115.0a1 (2023-05-10)
- 114.0b3
Tested platforms
- Affected platforms: Windows 7x64 (HDD), Ubuntu 20.05 (HDD)
- Unaffected platforms: macOS 12, Windows 10x64 (SSD)
Preconditions
- have some Saved Form History data
Steps to reproduce
- Open Firefox and import Saved Form History data.
- Observe the importing time.
Expected result
- The action does not take very long.
Actual result
- Importing Saved Form History takes some time.
Regression range
- Not a regression, started with the implementation of bug 1827425.
Additional notes
- Attached a screen recording.
- May be similar to bug 1825239.
- I can reproduce this on my Ubuntu 20.04 and Windows 7x64 machine which has a hard drive. On other systems that have an SSD, the import is performed fast.
- This happens with legacy migratory and with both new migration windows.
Comment 1•1 year ago
|
||
:atrif, if you think that's a regression, could you try to find a regression range using for example mozregression?
Assignee | ||
Comment 2•1 year ago
|
||
Hi atrif,
You can safely ignore bugbot. :) But would you be able to gather and post a performance profile from that machine recorded when doing the migration? I'm not sure if you've ever had occasion to do that before, but just in case: https://firefox-source-docs.mozilla.org/performance/reporting_a_performance_problem.html
Reporter | ||
Comment 3•1 year ago
|
||
(In reply to Mike Conley (:mconley) (::gear:) from comment #2)
Hi atrif,
You can safely ignore bugbot. :) But would you be able to gather and post a performance profile from that machine recorded when doing the migration? I'm not sure if you've ever had occasion to do that before, but just in case: https://firefox-source-docs.mozilla.org/performance/reporting_a_performance_problem.html
Hey Mike! Sure thing! Here is one from Ubuntu 22.04 with Firefox 114.0b6 (https://share.firefox.dev/3WgVgHW) and this one is from Windows 7x64 (https://share.firefox.dev/3WmlZD1). I hope this helps! Note that this does not happen on every profile/browser that I import from. This maybe happens because on some profiles are more forms of autofill data and/or I'm signed in with an account. On a new chrome-browser profile with less autofill form history data, importing performs a lot faster. If more information is needed please let me know.
Assignee | ||
Comment 4•1 year ago
|
||
Hm - none of the profiled threads seem to have the information I need. Can you please re-profile, but this time configure the profiler (by visiting about:profiling) and checking "Bypass selections above and record all registered threads"?
Reporter | ||
Comment 5•1 year ago
|
||
(In reply to Mike Conley (:mconley) (:⚙️) from comment #4)
Hm - none of the profiled threads seem to have the information I need. Can you please re-profile, but this time configure the profiler (by visiting about:profiling) and checking "Bypass selections above and record all registered threads"?
Unfortunately, I could not upload the profiles directly to the profiler due to the increased size. I downloaded them locally and uploaded them here and here. I hope this helps.
Assignee | ||
Comment 6•1 year ago
|
||
Assignee | ||
Comment 7•1 year ago
|
||
Hi atrif,
I have some try builds here with a patch that I think might improve the performance of importing form autofill entries. Can you please try them to see if they help on those older devices?: https://treeherder.mozilla.org/jobs?repo=try&revision=f0a71ea05455cdefc73a600cb91741e8487e9d40
Reporter | ||
Comment 8•1 year ago
|
||
(In reply to Mike Conley (:mconley) (:⚙️) from comment #7)
Hi atrif,
I have some try builds here with a patch that I think might improve the performance of importing form autofill entries. Can you please try them to see if they help on those older devices?: https://treeherder.mozilla.org/jobs?repo=try&revision=f0a71ea05455cdefc73a600cb91741e8487e9d40
Hello Mike!
Sure thing! With the above try build importing form history happens almost instantly or a maximum of ~2sec on the same low-end computers with Ubuntu 22.04, Ubuntu 20.04, and Windows 7x64 on which I could reproduce the issue initially. Thank you!
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 10•1 year ago
|
||
Comment on attachment 9335442 [details]
Bug 1832784 - Batch add operations during form history migration. r?Gijs!
Beta/Release Uplift Approval Request
- User impact if declined: Users that attempt to migrate form autofill from other browsers on older machines with large form autofill databases (or slow disks) will find that migration takes a long time.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Covered by automated tests, and is quite well contained. Essentially, for a row of autofill entries, instead of inserting each one individually into the database one by one, we create an intermediate list of autofill entries, and insert them as a batch.
- String changes made/needed: None.
- Is Android affected?: No
Comment 11•1 year ago
|
||
bugherder |
Reporter | ||
Comment 12•1 year ago
•
|
||
Verified fixed with Firefox 115.0a1 (2023-05-26) when importing form autofill history from Chrome browser on the same systems that the issue is still manifesting with an affected build (Windows 7 x64, Ubuntu 20.04 and Ubuntu 22.04). The form autofill data is almost instantly imported.
Comment 13•1 year ago
|
||
Comment on attachment 9335442 [details]
Bug 1832784 - Batch add operations during form history migration. r?Gijs!
114 regression and low risk, approved to land on the beta branch before Monday merge to mozilla-release for our RC build, thanks.
Comment 14•1 year ago
|
||
bugherder uplift |
Reporter | ||
Comment 15•1 year ago
|
||
Verified fixed with Firefox 114.0 (20230529085652) on Windows 7x64, Ubuntu 20.04 and Ubuntu 22.04. The form autofill data is almost instantly imported.
Description
•