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

Opening a large file presents a blank screen for a long time #497

Open
vlovich opened this issue Jan 30, 2018 · 1 comment
Open

Opening a large file presents a blank screen for a long time #497

vlovich opened this issue Jan 30, 2018 · 1 comment

Comments

@vlovich
Copy link
Contributor

vlovich commented Jan 30, 2018

If your issue is a build or runtime error, please include the following:

  • OS / platform (e.g. macOS 10.13.2)
  • the frontend you're using, if applicable (xi-mac)
  • the commit you're on, if building from source (#3a2405b) 89d1223

Generate a large random file: dd if=/dev/random of=test.bin bs=1M count=100
Convert to text: hexdump test.bin > test.txt
Open test.txt

Expected:
The view is populated quickly with the contents of the file

Actual:
The view stays blank while the file is loading for a while
100% CPU usage by syntect plugin (why?)
100% CPU usage by xi-core after file loads.

@cmyr
Copy link
Member

cmyr commented Jan 30, 2018

This has some overlap with #197, Although it does seem slower than it needs to be even in the sync case. Might be fun to investigate once we have the tracing stuff merged.

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

No branches or pull requests

2 participants