← Back to context

Comment by seiferteric

2 days ago

I am interested in this. At my job we have shared systems where engineers often open very large files (10+GB) using vim/gvim and it loads the entire thing into memory and often means these servers are memory starved. Would ropey help in these situations?

No:

> On the other hand, Ropey is not good at:

> Handling texts that are larger than available memory. Ropey is an in-memory data structure.

Also, this is a rust library, not an editor application.

I am literally guessing at this point — but can they mmap those files?

(Or I mean can you shard the files/store the files more efficiently)

  • I am not sure, I have looked into whether vim mem maps files or not over the years and get conflicting answers. Some say no, some say newer versions do, or it depends file type (binary vs text) or it depends on what plugins are enabled etc. All I know is I often see gvim processes using tons of rss memory.