help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] Emacs and big files


From: Jason Rumney
Subject: Re: [h-e-w] Emacs and big files
Date: Mon, 24 Jun 2013 22:02:16 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Renger van Nieuwkoop <address@hidden> writes:

> Is it possible to reduce this time? Perhaps is there x64-build of
> Emacs…

If you expect the file to be ASCII, or don't care about the encoding of
non-ASCII characters in it, find-file-literally should be faster than
other methods of reading the file.

I'm not sure whether reverting a file that was originally read by
find-file-literally automatically gets this speed advantage, or you may
need to do the reverting differently, using something like:

(defun my-revert-func ()
"Revert a literal file quickly"
       (interactive)
       (with-silent-modifications
              (delete-region (point-min) (point-max))
              (insert-file-contents-literally buffer-file-name)))


Disclaimer: No warranty for the above code.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]