jakykong / vim-zim

Vim plugin to support working with Zim Desktop Wiki files
32 stars 4 forks source link

`find` command is slow #9

Open mid-kid opened 9 months ago

mid-kid commented 9 months ago

In the file plugin/zim/plugins.vim, the command system("find /usr/lib/python* -name 'zim' -type d") is executed.

This causes a lot of reads, which depending on the storage media, and the size of /usr/lib/python*, ends up being really slow if the caches have been evicted from memory. Additionally, it doesn't find anything when zim isn't installed there (e.g. gVim on windows)

What is this used for? Can the files it's looking for be stored inside this repository instead? Or the data it's trying to extract be represented more efficiently?