This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
Lower startup time - #219
Merged
Merged
Conversation
Unsubscribe is done with via destroyed events from the model.
Closed
Contributor
There was a problem hiding this comment.
This kind of sucks. Not very readable. We need a better story for creating markup.
Contributor
Author
There was a problem hiding this comment.
Yeah, figured we would circle back with a markup/template push eventually once we refactor a couple more packages to use custom elements.
Contributor
Author
|
The specs are green against atom/atom master but are failing against 0.126 since atom/atom@c141448 is only on master and makes it so you can use the Jasmine matchers with a raw element. So this won't get merged before atom 0.127 is released. |
Contributor
Author
0.127 is out now and the specs are now 📗 on CI, so I'm going to merge this and plan to include it with 0.128 |
kevinsawicki
added a commit
to atom/find-and-replace
that referenced
this pull request
Sep 12, 2014
The tree view was updated in atom/tree-view#219 to not use space pen views so update the search in directory command to pull the path directly from the DOM element.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
The tree view loads synchronously at startup and restores the previously expanded directories and scroll position. This can significantly impact startup performance since each entry in the tree is a space-pen view.
The goal of this PR is minimize the impact that the tree view has on startup by finding faster ways to create and renders the views.
What Changed
Viewwhich are quicker to create.File/Directorymodels from pathwatcher, instead just use lighter weight models that only load the needed file/folder information.Results
Opened a project with 290 folders and 5 files that is scrolled all the way to the bottom with the bottom file selected and the view focused on a Macbook Pro on OS X 10.8.5 with 2.6 Ghz Intel Core i7 processors and 16 GB of memory.
Previous time take to create the view: 320ms
New time taken to create the view: 125ms
Closes #216