Closed dstengle closed 2 weeks ago
Thanks for reporting this, can you confirm that it doesn't happen in the previous version? Would you be able to provide a reproducible example?
I've been seeing the same slowness since the last release (0.26.2) across multiple computers running Windows 11.
@mburleigh thanks for reporting - same request, can you please give us more detail? What is slow? Do you have a reproducible example? I am not experiencing the problem, it would be great to have some instructions on how to see the problem
I'm seeing the same behavior as the OP. Typing in a note and hit "[[
I just timed it and it took 9 seconds for the intellisense to appear.
Some questions:
6633 files in 388 folders yes - PDFs, various image files, drawio files, even a couple of Polyglot notebooks, a geojson, probably a few others nothing in the logs that I can see
tonight I'll clone the repo and see what I can see debugging it felt like a regression bug to me but could definitely be related to my vault composistion
BTW, if I revert to the previous release the problem goes away.
Yes. There is something off in the change I made. However, with the current information I can't understand what the problem is. Especially as I can't reproduce the problem. So, we need a lot of info to research
The TrieMap is variable time based on size for lookup vs hashmap which should be fixed, so probably related to size of knowledge base?
@dstengle well. I think it happens in some circumstances. In your case, how large is your collection of notes. Especially, curious to the amount of folders you have. I am suspecting this might be an issue...
I have ~2500 notes spread across ~600 directories (1 per day).
I'm having the same problem described above.
System:
.md
files, maybe 10 .jpeg
and 10 .py
files.Problem:
[[
and then a name of a note does not show possible auto-complete wiki link options. If I start typing a file name (e.g. "abcd"), then backspace, it freezes and I'm unable to edit the wiki link. I can move my cursor, but my keystrokes take a delay of many seconds before registering, sometimes even in another note if I move my cursor to another note before they register. I'm wondering if there's something wrong in how the search is performed or how the files are indexed.Just noticed one of my directories is a little deeper than the others: it's a small research git repo with some python files. No more than 30-ish subdirectories throughout at a max depth of around 6-7. Contains a few PDFs as well.
I've located the source of the problems. (cc @riccardoferretti)
In link-completion.provideCompletionItems
we iterate over all resources. However, for each resource, we want to retrieve the identifier. We use FoamWorkspace.getIdentifier()
for this. In this method, we also iterate over each resource to get the identifier. So, in larger collections of notes, this multiplies to a large set of iterations. This causes a delay in operations. This connects with the investigation I did for #1375 yesterday.
Will work on finding a solution for this.
Cartesian product strikes again! Thanks for proving we're not crazy @pderaaij !
Sorry about the regression. It was definitely an unexpected side-event. Although it helped me find a more general performance issue which I couldn't find up to now.
Tricky kind of bug to test for. Says a lot how quickly you were able to track down the root cause though - thanks!
Describe the bug
My keyboard input hangs badly inside wikilinks and suggestions take forever to show up if they ever do.
Small Reproducible Example
No response
Steps to Reproduce the Bug or Issue
Start a wikilink by typing [[ and keyboard input hangs.
Expected behavior
Keyboard input with link suggestions without delays.
Screenshots or Videos
No response
Operating System Version
Ubuntu 24.04
Visual Studio Code Version
1.95.2
Additional context
No response