m00natic / vlfi

View Large Files in Emacs
458 stars 25 forks source link

Network file save takes too long #22

Closed m00natic closed 10 years ago

m00natic commented 10 years ago

The way TRAMP works when appending to file is first copy the whole file, then invoke local write-region. So each time VLF adjusts a chunk, the whole file is copied through the network. So either:

  1. VLF and TRAMP work together and reuse the initial temporary whole copy for all batch writes.
  2. VLF itself makes a whole copy, saves multiple batches and then copies back through the network.

In any case, the way VLF appends to file, seems useless when it's done through TRAMP.

m00natic commented 10 years ago

Option 2 was implemented with 842569ae07e94ae4f68064ebeb92617847f30417