Steve Kelker wrote:
> I have noticed that swap file writes are done in 4K blocks, but file
> reads are done in 64K blocks. If it isn't possible to adjust this
> behavior with configuration, then I suggest opening this up as a
> performance issue that could be addressed in future releases of gvim?
> Opening a large file would be much faster if this were changed. It
> would also reduce disk/file fragmentation.
Vim uses the block size that the filesystem specifies for the swapfile
page size. That is usually the optimal size, because no buffering is
needed. Writes can be done in random positions, it's not always
sequential. Trying to buffer writes when they happen to be sequential
is tricky.
Reads are done in larger blocks to make them go faster.
I very much doubt that changing this will change performance much.
There are other things that matter more. E.g., the need to count the
lines when opening a file and copying them into another place in memory.
--
hundred-and-one symptoms of being an internet addict:
187. You promise yourself that you'll only stay online for another
15 minutes...at least once every hour.
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---