emacs-devel
[Top][All Lists]
Advanced

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

Re: desktop.el: autosave?


From: Reuben Thomas
Subject: Re: desktop.el: autosave?
Date: Thu, 6 Dec 2007 23:44:52 +0000 (GMT)
User-agent: Alpine 0.99999 (DEB 796 2007-11-08)

On Fri, 7 Dec 2007, Juri Linkov wrote:

Saving a buffer's file is fast operation comparing to saving the desktop
that takes more time because it is a cpu-intensive task that collects
information from all buffers and some possibly long lists and writes
to the usually large desktop file.  The default timeout for auto-save
is 30 sec which is ok for auto-saving normal files, but I don't see a
need to waste resources to save the desktop so often.

It's easy to argue about this, but numbers are more convincing. I don't know anything about instrumenting functions in Emacs; how can I find out how long Emacs spends running desktop-save over a particular time period?

But the main problem with idle timers is that with long intervals they may never run.

So don't use long intervals: if the computer is idle anyway, why does it matter if Emacs does some work? Or does "idle" only apply to Emacs?

--
http://rrt.sc3d.org/ | Travail broadens the behind




reply via email to

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