Akria Sheng wrote: > When vim diff, it will always write buffer to a temp file. > But if the file is very huge, for example tens of giga bytes, it will spend > much time to write temp file. > > I try to make vim avoid write unnecessary temp file, it resolve my problem, > but I don't know the modification is safe or not. > > Because the part, I modifiated, is similar between vim74 and vim80, > so I provide the modification of vim74.
Interesting idea. It would certainly help when using "vimdiff file1 file2". The code doesn't follow Vim's style, needs to be cleaned up a bit. When the buffer did change, we could check what lines in the buffer are equal, and not write that part. -- hundred-and-one symptoms of being an internet addict: 197. Your desk collapses under the weight of your computer peripherals. /// 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
