Title: [185690] trunk/Websites/perf.webkit.org
Revision
185690
Author
[email protected]
Date
2015-06-17 21:05:50 -0700 (Wed, 17 Jun 2015)

Log Message

Reading the list of analysis tasks is extremely slow
https://bugs.webkit.org/show_bug.cgi?id=146086

Reviewed by Darin Adler.

The bug was caused by Ember data requesting manifest.js hundreds of times.
Fetch it ahead of time in each route instead.

* public/v2/app.js:
(App.AnalysisRoute.model):
(App.AnalysisTaskRoute.model):

Modified Paths

Diff

Modified: trunk/Websites/perf.webkit.org/ChangeLog (185689 => 185690)


--- trunk/Websites/perf.webkit.org/ChangeLog	2015-06-18 01:55:35 UTC (rev 185689)
+++ trunk/Websites/perf.webkit.org/ChangeLog	2015-06-18 04:05:50 UTC (rev 185690)
@@ -1,5 +1,19 @@
 2015-06-17  Ryosuke Niwa  <[email protected]>
 
+        Reading the list of analysis tasks is extremely slow
+        https://bugs.webkit.org/show_bug.cgi?id=146086
+
+        Reviewed by Darin Adler.
+
+        The bug was caused by Ember data requesting manifest.js hundreds of times.
+        Fetch it ahead of time in each route instead.
+
+        * public/v2/app.js:
+        (App.AnalysisRoute.model):
+        (App.AnalysisTaskRoute.model):
+
+2015-06-17  Ryosuke Niwa  <[email protected]>
+
         Update ReadMe.md and Install.md per database changes
         https://bugs.webkit.org/show_bug.cgi?id=146076
 

Modified: trunk/Websites/perf.webkit.org/public/v2/app.js (185689 => 185690)


--- trunk/Websites/perf.webkit.org/public/v2/app.js	2015-06-18 01:55:35 UTC (rev 185689)
+++ trunk/Websites/perf.webkit.org/public/v2/app.js	2015-06-18 04:05:50 UTC (rev 185690)
@@ -1185,8 +1185,11 @@
 
 App.AnalysisRoute = Ember.Route.extend({
     model: function () {
-        return this.store.findAll('analysisTask').then(function (tasks) {
-            return Ember.Object.create({'tasks': tasks.sortBy('createdAt').toArray().reverse()});
+        var store = this.store;
+        return App.Manifest.fetch(store).then(function () {
+            return store.findAll('analysisTask').then(function (tasks) {
+                return Ember.Object.create({'tasks': tasks.sortBy('createdAt').toArray().reverse()});
+            });
         });
     },
 });
@@ -1194,7 +1197,10 @@
 App.AnalysisTaskRoute = Ember.Route.extend({
     model: function (param)
     {
-        return this.store.find('analysisTask', param.taskId);
+        var store = this.store;
+        return App.Manifest.fetch(store).then(function () {
+            return store.find('analysisTask', param.taskId);
+        });
     },
 });
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to