-
- Downloads
Improve files_decorator performance
**How?** Previously the files_decorator inserted parent folders inefficiently. It started at the first part and ensured each was inserted. Since the file entries are given to use in alphabetical order, we can start at the last part of the blob's parents. If this exists, we can short circuit and be done inserting parents. **What else?** - Improve performance of decorateData. The object spread operator is not needed because the object is brand new.
Showing
- app/assets/javascripts/ide/lib/files.js 113 additions, 0 deletionsapp/assets/javascripts/ide/lib/files.js
- app/assets/javascripts/ide/stores/actions.js 21 additions, 27 deletionsapp/assets/javascripts/ide/stores/actions.js
- app/assets/javascripts/ide/stores/actions/tree.js 24 additions, 22 deletionsapp/assets/javascripts/ide/stores/actions/tree.js
- app/assets/javascripts/ide/stores/utils.js 2 additions, 3 deletionsapp/assets/javascripts/ide/stores/utils.js
- app/assets/javascripts/ide/stores/workers/files_decorator_worker.js 0 additions, 100 deletions.../javascripts/ide/stores/workers/files_decorator_worker.js
- changelogs/unreleased/53336-improve-web-ide-launch-performance.yml 5 additions, 0 deletions...s/unreleased/53336-improve-web-ide-launch-performance.yml
- spec/javascripts/ide/lib/files_spec.js 77 additions, 0 deletionsspec/javascripts/ide/lib/files_spec.js
- spec/javascripts/ide/stores/actions/tree_spec.js 7 additions, 0 deletionsspec/javascripts/ide/stores/actions/tree_spec.js
app/assets/javascripts/ide/lib/files.js
0 → 100644
spec/javascripts/ide/lib/files_spec.js
0 → 100644
Please register or sign in to comment