Skip to content

10x longer startup times when using specific settings #2185

@ThSGM

Description

@ThSGM

Description

I am trying to diagnose what can be done to reduce my vimtex startup times. It is quite significant at the moment. I have prepared a video below using this profiler. Basically, when I comment in the following code:

let g:vimtex_view_method = "skim"
let g:vimtex_compiler_progname = "nvr"
let g:vimtex_view_general_viewer
	\ = '/Applications/Skim.app/Contents/SharedSupport/displayline'
let g:vimtex_view_general_options = '-r @line @pdf @tex'

the neovim startup time is about 10x longer than if I comment out that code. I have attached the profile.log here.

ScreenFlow.mp4

I can try and prepare a minimal test file, but that might require some more time for me to strip out the necessary stuff and re-run the tests. Perhaps this may do to get the ball rolling.

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Do you use a latexmkrc file?

No

VimtexInfo

System info
  OS: Mac OS X 10.15.7 (19H1217)
  Vim version: NVIM v0.6.0-dev+59-g2475161de
  Has clientserver: true
  Servername: /var/folders/yr/htyy1zjx2pb9_1s11ns1yz1m0000gn/T/nvimB0St0M/0

VimTeX project: test
  base: test.tex
  root: /Users/myuser/Downloads/vim-plugins-profile-master
  tex: /Users/myuser/Downloads/vim-plugins-profile-master/test.tex
  main parser: current file
  document class: 
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: Skim
  qf method: LaTeX logfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions