Friday, September 9, 2022

Re: Gvim taking a minute or more to start

On Thu, 8 Sept 2022, 19:38 Tim Chase, <vim@tim.thechases.com> wrote:
On 2022-09-08 11:30, Gary Johnson wrote:
> I suspect that whatever is causing that 5-second startup time is
> contributing to the read times of every file that gvim opens.
> So, while 5 seconds is better than 30, solving that 5-second issue
> may solve the rest.
>
> Unfortunately, I don't anything about diagnosing issues with Windows
> or security programs.

While my Windows experience is similarly limited, the symptoms sound
suspiciously like either anti-virus software or a virus intervening
on every file-system read to see if the file is infected/valuable.

I'd be curious if apps take a similar amount of "bonus" time to
load.  If you (OP) have Python installed on the machine, it would
be interesting to run the python interpreter and issue

  C:\> python -q
  >>> import os
  >>> f = open(os.path.expanduser("~/_vimrc"))
  >>> f.close()

Entering that `open()` call should take negligible time, the blink
of an eye.  If that takes any noticeable amount of time, something
outside vim is intercepting all your (OP's) file-reads at an
atrocious cost.

That specific command produced an immediate file-not-found message (the only _vimrc I have is in c:/vim). Running:

>>> f = open('c:/vim/_vimrc')
>>> f2 = open('c:/vim/vimfiles/vimrc')

both commands were instantaneous

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOaJ26Tq7YAs7Q6gzXFYJjM6RrQQ9bN-NdmFzF6p6qp1FY9Nvw%40mail.gmail.com.

No comments: