terrychou / iVim

A vim port to iOS.
599 stars 34 forks source link

What is the maximum memory that iVim can use on Device? #153

Closed suliveevil closed 4 years ago

suliveevil commented 4 years ago

I have a plugin(ZFVimIM) could read files for chinese character input. When I put a db file(filetype is text, largefile.txt) contains 3 million words (about 80MB), it crashes iVim.

htkm commented 4 years ago

Wow. I think I had a similar experience. My guess that the max memory changes over time managed by OS. After the crash, I thought if iVim was compiled with clientserver, we could have remote machine do the heavy lifting.

But I wasn't sure if that options is for this case. The remote vim is probably not another iVim of course, meaning that there's no limit in plain vim configuration. Sometimes I do :term ssh ... then open another vim in remote feeling awkward.+clientserver can help me fix my habit?

terrychou commented 4 years ago

The maximum memory that iVim can use differs device by device and it also depends on the memory usage of the whole system. Therefore, it is not something iVim can predict or enforce by code.

Would you share the plugin and the database in question, so that we can have a try?

suliveevil commented 4 years ago

Plugin:

https://github.com/ZSaberLv0/ZFVimIM

Data:

https://github.com/suliveevil/pyim-greatdict.vim

I couldn't locate where the problem happends, memory limit is just a guess.

suliveevil commented 4 years ago

I give up using ZFVimIM temporarily. It couldn't handle large files easily like thesaurus_query.vim.