Avoid unnecessary WorkQueue dispatch in WebResourceLoadStatisticsStore::processStatis...
[WebKit-https.git] / Source / WebKit / ChangeLog
index 29a20c9e021b7875c2359a256f2a837531f9b0be..b1d23d03c09e1decbf32ffd7fc0c2add7134490f 100644 (file)
@@ -1,3 +1,20 @@
+2017-07-20  Chris Dumez  <cdumez@apple.com>
+
+        Avoid unnecessary WorkQueue dispatch in WebResourceLoadStatisticsStore::processStatisticsAndDataRecords()
+        https://bugs.webkit.org/show_bug.cgi?id=174686
+
+        Reviewed by Geoffrey Garen.
+
+        Avoid unnecessary WorkQueue dispatch in WebResourceLoadStatisticsStore::processStatisticsAndDataRecords(). The most common
+        call site is already on the right thread.
+
+        * UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
+        (-[WKWebsiteDataStore _resourceLoadStatisticsProcessStatisticsAndDataRecords]):
+        * UIProcess/WebResourceLoadStatisticsStore.cpp:
+        (WebKit::WebResourceLoadStatisticsStore::scheduleStatisticsAndDataRecordsProcessing):
+        (WebKit::WebResourceLoadStatisticsStore::processStatisticsAndDataRecords):
+        * UIProcess/WebResourceLoadStatisticsStore.h:
+
 2017-07-20  Chris Dumez  <cdumez@apple.com>
 
         Regression(ITP): May get frequently logged out of wsj.com