[Top][All Lists]

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

Re: sleep-for documentation and how to pause reliably

From: Xue Fuqiao
Subject: Re: sleep-for documentation and how to pause reliably
Date: Sun, 17 Feb 2013 19:58:13 +0800

On Sat, 16 Feb 2013 10:40:58 +0200
Eli Zaretskii <address@hidden> wrote:

> > I tried to run the initial example you sent:
> > 
> > (progn
> >   (setq proc (start-process-shell-command "ls" nil "ls"))
> >   (sleep-for 20)
> >   (message "hi"))
> > 
> > and I noticed that the first time I eval the code Emacs wait for 20s as
> > expected and on next evaluations it send the message "Hi" immediately
> > unless I run `list-processes', wait some seconds and reeval it.
> I never see anything close to 20 sec, neither on Windows nor on
> GNU/Linux.  The first evaluation takes a little longer (perhaps a
> second or two) until I see "hi", but I think this is due to a cold
> cache that makes start-process-shell-command slower.

Just a question: what does "cold cache" mean?  I only know that "cache"
is a collection of data duplicating original values stored elsewhere.

Best regards, Xue Fuqiao.

reply via email to

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