Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too long to open a big file #89

Closed
haifengkao opened this issue Oct 2, 2016 · 6 comments
Closed

Too long to open a big file #89

haifengkao opened this issue Oct 2, 2016 · 6 comments

Comments

@haifengkao
Copy link
Contributor

It takes too long to open a big file.
nvim can open a big file in few secs.
But nyaovim takes a minute to open the same file.

Expected Behavior

should open the file within 5 secs

Actual Behavior

nyaovim takes a minute to open the file

Steps to Reproduce (including precondition)

  1. download the 40MB json file https://raw.githubusercontent.com/Fngi/taipower_MAPS/gh-pages/result.json
  2. open it with nyaovim
@justinmk
Copy link

justinmk commented Oct 2, 2016

That's a Vim problem, nyaovim cannot help it.

@rhysd
Copy link
Owner

rhysd commented Oct 2, 2016

As @justinmk said, Vim is not good at handling large files. Please try nvim in terminal to clarify the problem derives from backend (Vim) or frontend (NyaoVim).

@haifengkao
Copy link
Contributor Author

You are right. Because I opened the file with nyaovim first, nvim can open the same file in few secs. If I open the file with nvim first, nvim is very slow as well.

@rhysd
Copy link
Owner

rhysd commented Oct 4, 2016

@haifengkao Thank you for confirmation. 😃

@haifengkao haifengkao reopened this Oct 4, 2016
@haifengkao
Copy link
Contributor Author

haifengkao commented Oct 4, 2016

@rhysd I am sorry. I was wrong again. nvim can open the same big file in few secs.
But it didn't display the file content until I press ctrl-c.

The ctrl-c stuff is related to the plugins.
If I open the file with nvim -u NORC result.json,
the file will be displayed instantly.

@haifengkao
Copy link
Contributor Author

If the plugins are removed, nyaovim can open the same big file in few seconds.
If the plugins are added, nyaovim can also open the file in few seconds if users press ctrl-c.
In my experiments, nvim and nyaovim can open a 200MB file in seconds without any problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants