-
Notifications
You must be signed in to change notification settings - Fork 30
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
Extremely slow on local LAN #39
Comments
How did you solve the problem? |
Solved by uninstalling editorconfig plugin |
If the slowness is happening on every tab switch, perhaps the plugin isn't caching the results of this search on a per-tab basis and is instead searching for (and reading) Yep, looking at src/NppPluginEditorConfig.cpp it seems the entire loading process happens every time
So on every tab switch it does: The spec at https://editorconfig.org/#file-location says:
so it seems this should only be done once when a file is opened? |
Furthermore, it seems like the plugin is traversing all the way up to the server of a UNC share. i.e.:
The last 2 of which should never be attempted because the UNC paths have to be a directory, and the toplevel refers to a host. Imagine a host being called .editorconfig (not legal, but can't guess what happens...) Edit: It seems to be within the core editorconfig library: https://github.com/editorconfig/editorconfig-core-c/blob/082268b/src/lib/editorconfig.c#L519, the path splitting algorithm isn't UNC-aware. |
Thanks @lowjoel for the great feedback. I have opened editorconfig/editorconfig-core-c#98 in the core-c repo to report this problem. |
Files are stored on Raspberry Pi where Home Assistant is installed. I'm using an official Add-on: Samba share to access config
.yaml
files from Windows 10 desktop computer.When this plugin is installed in Notepad++, reading is very, really very slow ~ like 4-5 sec. And this lag delay is repeating every time I switch files tabs.
Notepad++ has no problem when this plugin is not installed. Other editors like Notepad, VSCode, ST3 also have no visible problem.
I've solved my problem now but decided to submit this bug ticket to warn and help other Hass.io users that can have similar problems.
The text was updated successfully, but these errors were encountered: