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
Minor bug? VimwikiDiaryPrevDay
and VimwikiDiaryNextDay
are *slow*
#328
Comments
Well, when searching for the current or next diary entry, Vimwiki first reads in the names of all existing diary files. How many diary files do you have roughly? And what do you mean by slow? Are we talking about 1 second or more like 10 seconds? |
Dear @EinfachToll, I think my first wiki is from year 2014, and I should have been writing daily diaries ever since. In total, there are roughly 1,500 Also, here goes my test for the speed:
I notice that the wait-time is independent whether that day-old diary is loaded into a buffer or not. May the logic could first go with sourcing the open-buffers? |
1500 files is much, but should not be too much for today's hardware. I will take a look. |
This is unnecessary and can be very slow when the user has many diary files. Ref #328
@llinfeng can you check out the dev branch and test it? It should be noticeable faster now. |
@EinfachToll I have tried, but it seems no difference on the machine from which I reported the problem. The issue I reported previously might has to do with a hardware defect on my end. Apologize for the confusion. After tying on my other machines (not booting from this particular hard drive, but other newer SSD disks), performance is reasonable. Maybe I have kept using one SSD drive for too long (2 years from 2015 March). I have filed a RMA request to the manufacturer. Here goes a brief list of response time (for
The 10 seconds lat (max, avg around 6s) had only happened on my Thinkpad X230T machine with the 2-year-old Samsung 850 Pro SSD drive. |
Update and partial solutionThis is awkward, but the 4~5 seconds lag I was reporting may due largely to how I started my GVIM session. This appears to be a AutoHotKey script issue, where if I start the |
@llinfeng It sounds like this was a configuration issue on your end. If you are still having problems please test against the latest |
In general, issuing the two commands (
:VimwikiDiaryNextDay
and:VimwikiDiaryPrevDay
) are slow on my side. It is in particular noticeable if I am using it on a desktop computer running HDD drive; and still noticeable when I am using it on M.2 SSD drive.Just now, my Gvim session had crashed when I tried to go to the journal/diary a day before, leaving the following "trace" as caught by
Dr. Mingw
.I also compared the speed of loading the day-old diary through its absolute path against the performance I get from
VimwikiDiaryPrevDay
. The former method is way faster.The text was updated successfully, but these errors were encountered: