Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Open files asyncronously - #939

Merged
probablycorey merged 36 commits into
masterfrom
cj-async-file-open
Oct 10, 2013
Merged

probablycorey merged 36 commits into
masterfrom
cj-async-file-open

Conversation

@probablycorey

Copy link
Copy Markdown

The goal of this PR is to make opening large files possible. It adds an async pathway to open a file but keeps the existing synchronous path around for tests and compatibility.

The slow part now appears to be telepath. When opening a 1 meg file this is the profile:
file-1m txt - _users_corey_desktop_files-1

If you try and open a 5 meg file Atom will still crash because it runs out of memory. I'm not sure the proper way forward here. We either need to make telepath work well with large files, or we need to make large files not use telepath.

Comment thread src/project.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need the question mark here anymore now that line 169 takes care of it.

Comment thread src/project.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this intentional?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. Now it's fixed.

Comment thread spec/root-view-spec.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in instead of on?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in instead of on

@probablycorey
probablycorey merged commit 5377327 into master Oct 10, 2013
@kevinsawicki

Copy link
Copy Markdown
Contributor

⚡👇⚡
👉👍👈
⚡☝️⚡

@probablycorey probablycorey mentioned this pull request Oct 17, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants