> > I found a problem while using QuickFix list with a mounted network > > folder. It becomes very slow, because Vim performs stat() request for > > _each_ file from the list during it's initialization. > > > > When populating the quickfix list, the files in the quickfix entries are > loaded > into buffers. As part of loading the files, stat() call is made to get > information > about the file. The buffer number is stored as part of the quickfix entry. > > > Problem can be easily reproduced while running Vim under strace and > > performing :cgetfile command (I can provide more details if needed).
For what file names does this happen? If the same file name appears several times, it could help to cache the stat() result. Currently this isn't done because stat() uses a cache at a lower level, at least for a local file system. If the file name is different most of the times, a cache won't help. Obviously it's better if the cache exists in the network folder implementation, so all programs profit. -- The real trick is this: to keep the lines as short as possible and keep the size the same yet free from the need for hyphena- Dammit!! (Matthew Winn) /// 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.
