John Little wrote:

> Here's my version of the code for the readfile() function.
> 
> It fixes:   
> - Extreme slowness when lines are very long, such as those used by the 
> YankRing plugin.
> - CR removal failed for lines 199 bytes long.
> - BOM removal failed if the bom crossed a block boundary. They wouldn't 
> normally be there, but if we say we're doing it, we should do it.
> - Long lines are only built once, addressing the todo item that mentions 
> readfile, though I suspect the slowness was the real problem behind the 
> item.
> - A clearer attempt is made to recover from an out of memory error.  (It 
> even works for large allocations, but with lots of small ones, such as for 
> a very large text file, my system fails in glibc somewhere.)

Sounds good.  So does this one replace the patch the Dominique made?


-- 
hundred-and-one symptoms of being an internet addict:
25. You believe nothing looks sexier than a man in boxer shorts illuminated
    only by a 17" inch svga monitor.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui