vimwiki-backup / vimwiki

Automatically exported from code.google.com/p/vimwiki
1 stars 1 forks source link

Toooooo slow vimwiki because of nested_syntaxes. #348

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I find vimwiki so slow ..., it need almost 2 minutes to open a vimwiki file, 
whatever it is new file or existed file.

Then I come up with --startuptime option, but this can now help me, it can not 
tell me why open a vimwiki file is so slow, instead of open other files are not.

Then I try to debug my tooo big vimrc by myself, (I thought maybe my some 
plugins conflict with vimwiki, or spent too much in vimwiki... etc)

I *really* forget how to find this, but I removed some nested_syntaxes, then I 
use command `$ time vim vimwiki/index.wiki +q` command to test the time after 
changes.
This reduced the time !!!
Really ...., I do not know how to say that .... This slow problem troubled me 
for a long time.
I almost added 10 nested syntaxes.

I think vimwiki should change the way of loading nested syntaxes.
e.g. seek for `{{{python` in file to determine what syntax to load.
Even this will lose a feature, This will not syntax highlight for a new edited 
file, this highlight only for an exist and already edited viwmiki file.
Really hard to decide.

Original issue reported on code.google.com by numbch...@gmail.com on 26 Jun 2012 at 7:11

GoogleCodeExporter commented 8 years ago
Could you attach an example wiki file and vimwiki settings you use showing how 
slow vimwiki is?

Original comment by habamax on 26 Jun 2012 at 8:23

GoogleCodeExporter commented 8 years ago
=> On [2012-06-26 08:23:16 +0000]:
 vimwiki@googlecode.com Said: 

I have found the reason:
html, css, php, those three syntax is very large, so vimwiki is slow if I add
those three syntaxes into nested_syntaxes option.
Solved it now.
Maintainer can improve document with adding this into FAQ.

Original comment by numbch...@gmail.com on 26 Jun 2012 at 3:31

GoogleCodeExporter commented 8 years ago

Original comment by habamax on 27 Jun 2012 at 3:51