Incorrect loading of a random data file
Create `lorem`
```sh
yes "Lorem ipsum dolor sit amet, consectetur adipiscing elit." | head -c 102400KB > lorem
```
Create `random`
```sh
head -c 102400KB /dev/urandom > random
```
Virtual memory size of the process in KiB
(All were in their default shipped state)
```
vi lorem 161860 (158.07MiB)
vis lorem 105636 (103.16MiB)
emacs -nw lorem 149500 (146.00MiB)
hx lorem 180388 (176.16MiB)
nvim lorem 8828 (8.62MiB)
nvim --embed lorem 139196 (135.93MiB)
```
```
vi random 1164 (loads first 3 lines, with messed input)
vis random 105328 (102.86MiB)
emacs -nw random 199500 (194.82MiB)
hx random 254048 (248.09MiB)
nvim random 8828 (8.62MiB)
nvim --embed random 208748 (203.86MiB)
```
Maybe do what `vis` does :P
17 条评论