RESOLVED FIXED 208619
WebsiteDataStore methods often create process pools and launch network processes unnecessarily
https://bugs.webkit.org/show_bug.cgi?id=208619
Summary WebsiteDataStore methods often create process pools and launch network proces...
Chris Dumez
Reported 2020-03-04 17:40:09 PST
WebsiteDataStore methods often create process pools and launch network processes unnecessarily.
Attachments
Patch (10.07 KB, patch)
2020-03-04 17:56 PST, Chris Dumez
no flags
Chris Dumez
Comment 1 2020-03-04 17:56:11 PST
WebKit Commit Bot
Comment 2 2020-03-04 23:06:20 PST
Comment on attachment 392523 [details] Patch Clearing flags on attachment: 392523 Committed r257904: <https://trac.webkit.org/changeset/257904>
WebKit Commit Bot
Comment 3 2020-03-04 23:06:21 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4 2020-03-04 23:07:15 PST
Darin Adler
Comment 5 2020-03-05 08:52:01 PST
Comment on attachment 392523 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=392523&action=review > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:1256 > + for (auto& processPool : ensureProcessPools()) This one is still ensureProcessPools. I’m presuming that’s intentional, but I don’t see any explanation of that.
Chris Dumez
Comment 6 2020-03-05 08:54:51 PST
Comment on attachment 392523 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=392523&action=review >> Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:1256 >> + for (auto& processPool : ensureProcessPools()) > > This one is still ensureProcessPools. I’m presuming that’s intentional, but I don’t see any explanation of that. This actually goes and adds the prevalent resource in the ITP database on disk. Therefore, creating a process pool and a network process to go add this entry is not a no-op. In practice, this gets called by JS via testRunner so we always have a process pool / network process when this gets called so this is not contributing to Bug 208541 (which is what I am trying to address).
Note You need to log in before you can comment on or make changes to this bug.