Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Slow vim startup with large files #110

Open
datwaft opened this issue Jul 29, 2021 · 3 comments
Open

Slow vim startup with large files #110

datwaft opened this issue Jul 29, 2021 · 3 comments
Assignees
Labels
bug Something isn't working needs investigation Needs investigation
Milestone

Comments

@datwaft
Copy link
Owner

datwaft commented Jul 29, 2021

This also seems to drastically slow down nvim startup with larger files, on the order of seconds for files with thousands of lines

Originally posted by @crides in #104 (comment)

@datwaft datwaft added bug Something isn't working needs investigation Needs investigation labels Jul 29, 2021
@datwaft datwaft added this to the High priority milestone Jul 29, 2021
@datwaft datwaft self-assigned this Jul 29, 2021
@datwaft
Copy link
Owner Author

datwaft commented Jul 29, 2021

This may be fixed with the refactor I am doing to fix some other problems, it may need testing.

@darzok0914
Copy link

hi, what is the status with regards to this issue?

@datwaft
Copy link
Owner Author

datwaft commented Dec 8, 2021

hi, what is the status with regards to this issue?

This is probably caused by the creation of the highlights for the statusline, as every possible combination is created at once at startup.

There was a try to fix the creation of so many highlights, but it didn't work properly (#104).

Because of that I have tried to continue with the planned refactor, which has the following planned enhancements:

  • only create the highlights needed
  • custom bubble as functions
  • different statusline per buffer depending on filetype

I haven't had much time to continue with the refactor because I began to work at the same time that I am finishing my degree.

When I get confortable enough with my time I will continue with the refactor, as it is very time consuming.

Meanwhile you or someone else can create a pull request to fix #104, which is probably the cause of this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working needs investigation Needs investigation
Projects
None yet
Development

No branches or pull requests

2 participants