Testcase opening N IDB connections keeps the disc busier for 11x more time on Firefox (N=5000)
Categories
(Core :: Storage: IndexedDB, enhancement)
Tracking
()
People
(Reporter: mayankleoboy1, Unassigned)
References
(Depends on 2 open bugs)
Details
Attachments
(1 file)
2.04 KB,
text/html
|
Details |
Open testcase
N=1000
Firefox: https://share.firefox.dev/3EbY0lt
Chrome: https://share.firefox.dev/41YNffp
N=5000
Firefox: https://share.firefox.dev/3RDFiGk (120s)
Chrome: https://share.firefox.dev/42wh0Ep (11s)
Artificial testcase generated by chatgpt based on my prompts. But maybe it highlights some hotspots?
Reporter | ||
Comment 1•16 days ago
|
||
This may be a dupe of bug 1951283. If so, please feel free to dupe. :)
Comment 2•14 days ago
|
||
Part of the overhead seems to be coming from us opening and closing the DB twice, see bug 1454309 comment 2. Now that bug 1121282 has been fixed, we could probably try to optimize this? Maybe we even have a bug on file for this?
Comment 3•14 days ago
|
||
Yeah there's bug 1541548 and it mentions bug 1121282, but I'm not sure if the fix for bug 1121282 also enabled "shifting ownership of connections" as described in bug 1121282. It seems that's not yet supported given Connection::eventTargetOpenedOn is const:
https://searchfox.org/mozilla-central/rev/380b8fd795e7d96d8a5a3e6ec2b50a9f2b65854a/storage/mozStorageConnection.h#185
Comment 4•13 days ago
|
||
mozilla::net::CacheIndex::FrecencyArray::RecordExistedUnlocked seems to use a bit problematic data structure.
Cache I/O 2 spends pretty much all of its time in nsTArray operations in the first profile.
Description
•