Thursday, September 11, 2014

Re: sorted file takes much longer to load

On 2014-09-10 22:48, John Little wrote:
> > Is this reproducible if you run vim multiple times in a row for
> > each file separately? How many times this file may be duplicated
> > in your free RAM?
>
> Completely reproducible
>
> The file is only 104 MiB, my computer has about 2 GiB unused, it's
> always coming from cache.

You've checked that the input and output files are the same size?
(obvious, but I haven't seen confirmation) If for some reason the
data in the slow file had been duplicated, you'd be dealing with
N× the data. I *presume* this isn't the case, but always better to
put a nail in that possibility.

I'd also be interested in what Vim thinks the file-type is in each
case.

:set ft?

I've seen slowdowns where syntax/ft highlighting can make a HUGE
difference.

-tim


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment