* "strace emacs" reveals emacs always active
@ 2006-07-04 19:36 Dan Jacobson
2006-07-05 3:26 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2006-07-04 19:36 UTC (permalink / raw)
Comparing
$ strace emacs
vs.
$ strace vi
one finds emacs never sleeps. Lots of gettimeofday calls.
And I thought all it needed to do was keep count of auto-save-interval
events. Yes, emacs isn't making a blip on my CPU meter, but still I
bet it is doing something that miserly me probably doesn't need it to do.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "strace emacs" reveals emacs always active
2006-07-04 19:36 "strace emacs" reveals emacs always active Dan Jacobson
@ 2006-07-05 3:26 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2006-07-05 3:26 UTC (permalink / raw)
Cc: bug-gnu-emacs
> From: Dan Jacobson <jidanni@jidanni.org>
> Date: Wed, 05 Jul 2006 03:36:02 +0800
>
> Comparing
> $ strace emacs
> vs.
> $ strace vi
> one finds emacs never sleeps. Lots of gettimeofday calls.
That's Emacs idle loop in action. It's normal: how else would Emacs
know whether it has something to do?
In addition, depending on what you have in your .emacs init file, some
features, such as display-time, require more system calls inside the
idle loop.
> Yes, emacs isn't making a blip on my CPU meter
So what's your complaint?
> but still I
> bet it is doing something that miserly me probably doesn't need it to do.
Why do you need to assume that? Why not assume that Emacs does only
what it needs to do, and nothing else?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-05 3:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-04 19:36 "strace emacs" reveals emacs always active Dan Jacobson
2006-07-05 3:26 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).