rhysd / conflict-marker.vim

Weapon to fight against conflicts in Vim.
485 stars 18 forks source link

conflict-marker is slow on large files #3

Open haifengkao opened 7 years ago

haifengkao commented 7 years ago

It takes about a second to init conflict-marker with large files

Steps to Reproduce

  1. download the 10MB json file https://raw.githubusercontent.com/Fngi/taipower_MAPS/gh-pages/result.json
  2. open it with nvim result.json --startuptime vim.log
  3. check the vim.log

2016-10-04 6 23 19

Related

https://github.com/rhysd/NyaoVim/issues/89

LOL, I didn't know you are the conlict-marker's author

rhysd commented 7 years ago

From your screenshot, conflict-marker.vim looks to take only 0.096s.

haifengkao commented 7 years ago

You are right. Most of the time is spent on opening buffers. However, the presence of conflict-marker.vim have great impact on the time spent on opening buffer. Below the startup log when conflict-marker.vim is installed: 2016-10-05 9 46 06 After I removed it: 2016-10-05 9 44 36

rhysd commented 7 years ago

Hmm, I need to check