-
Notifications
You must be signed in to change notification settings - Fork 15
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
xref-js2 false-positive checks keeps all checked buffer files open #15
Comments
Okay. I tried finding a way to close it, but noticed a steep drop off in response speed. using profiler, it seems that my projectile hook is slowing down the file opening time for every file, which for large projects makes it feel like it's taking ages (takes upto 5 minutes the first time). After being opened once it's noticably faster tho. I guess, closing the open buffers impairs the usability of this plugin. What a shame, I guess I'll have to only use xref-js2 in essential situations or maybe find a way to disable any hooks for js2 mode when used with this plugin. |
MoHKale <[email protected]> writes:
Okay. I tried finding a way to close it, but noticed a steep drop off
in response speed. using profiler, it seems that my projectile hook is
slowing down the file opening time for every file, which for large
projects makes it feel like it's taking ages (takes upto 5 minutes the
first time). After being opened once it's noticably faster tho. I
guess, closing the open buffers impairs the usability of this
plugin. What a shame, I guess I'll have to only use xref-js2 in
essential situations or maybe find a way to disable any hooks for js2
mode when used with this plugin.
Could we find the files literally to keep things fast and then kill those buffers?
Nico
|
That seems reasonable |
this is the code block in question.
there's a
get-file-buffer
call in the let clause, but the evaluated variable is never used. the body is also wrapped in aprog1
despite not needing to be. Both these reasons lead me to conclude the that after the false-positive-checkbuffer-open
was supposed to be used to check whether the opened buffer should be killed or not (killed if the corresponding file wasn't already open). For one reason or another it was either never implemented or deprecated in favor of the current solution. Regardless, for large projects (and over controlling weirdos like myself 😈) having so many open buffers is inconvenient.The text was updated successfully, but these errors were encountered: