murisfurder / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Opening a big file takes long just to show the first part of the file #300

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. "vim somefile" where somefile is several hundreds MB in size 

What is the expected output? What do you see instead?

It should take a fraction of a second to open the file and display the part 
that fits in the terminal, no matter how big the whole file is. Vim doesn't 
need to read the whole file just to start displaying it, so there's no reason 
why opening a bigger file should take longer. 

Instead, it takes several seconds before you start seeing the first portion of 
the file

What version of the product are you using? On what operating system?

The one that ships in Debian 7

Please provide any additional information below.

I thought vim dealt with big files efficiently, I'm surprised to find out it 
doesn't. I thought only very long lines were a problem.

Original issue reported on code.google.com by matteosi...@gmail.com on 21 Dec 2014 at 11:04