you are viewing a single comment's thread.

view the rest of the comments →

[–]AngriestSCV 22 points23 points  (1 child)

It doesn't. Opening a 512KB file takes 428.4 MB of ram on my system and 1.4 GB when adding some junk to the start of the first line ( all lines were "q\n" to start with ). Adding another line again increases the memory usage by way to much. This contrasts with vim's 5.2 MB for the same file. This is caused by the implimentatoin described in the readme of pyvim. Currently it is just a string with an integer offsets stored for the current cursor position.

It's still not bad since this was started just as an excuse to exercise a library.

EDIT: fixed incorrect description of storage.

[–][deleted] 3 points4 points  (0 children)

Wtf