Changeset 185690 in webkit
- Timestamp:
- Jun 17, 2015, 9:05:50 PM (11 years ago)
- Location:
- trunk/Websites/perf.webkit.org
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
public/v2/app.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Websites/perf.webkit.org/ChangeLog
r185676 r185690 1 2015-06-17 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reading the list of analysis tasks is extremely slow 4 https://bugs.webkit.org/show_bug.cgi?id=146086 5 6 Reviewed by Darin Adler. 7 8 The bug was caused by Ember data requesting manifest.js hundreds of times. 9 Fetch it ahead of time in each route instead. 10 11 * public/v2/app.js: 12 (App.AnalysisRoute.model): 13 (App.AnalysisTaskRoute.model): 14 1 15 2015-06-17 Ryosuke Niwa <rniwa@webkit.org> 2 16 -
trunk/Websites/perf.webkit.org/public/v2/app.js
r185594 r185690 1186 1186 App.AnalysisRoute = Ember.Route.extend({ 1187 1187 model: function () { 1188 return this.store.findAll('analysisTask').then(function (tasks) { 1189 return Ember.Object.create({'tasks': tasks.sortBy('createdAt').toArray().reverse()}); 1188 var store = this.store; 1189 return App.Manifest.fetch(store).then(function () { 1190 return store.findAll('analysisTask').then(function (tasks) { 1191 return Ember.Object.create({'tasks': tasks.sortBy('createdAt').toArray().reverse()}); 1192 }); 1190 1193 }); 1191 1194 }, … … 1195 1198 model: function (param) 1196 1199 { 1197 return this.store.find('analysisTask', param.taskId); 1200 var store = this.store; 1201 return App.Manifest.fetch(store).then(function () { 1202 return store.find('analysisTask', param.taskId); 1203 }); 1198 1204 }, 1199 1205 });
Note:
See TracChangeset
for help on using the changeset viewer.