From: Xue Fuqiao <xfq.free@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, Thierry Volpiatto <thierry.volpiatto@gmail.com>
Subject: Re: sleep-for documentation and how to pause reliably
Date: Sun, 17 Feb 2013 19:58:13 +0800 [thread overview]
Message-ID: <20130217195813.634c3e504b81e6220258f785@gmail.com> (raw)
In-Reply-To: <83bobkslb9.fsf@gnu.org>
On Sat, 16 Feb 2013 10:40:58 +0200
Eli Zaretskii <eliz@gnu.org> 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.
http://www.emacswiki.org/emacs/XueFuqiao
next prev parent reply other threads:[~2013-02-17 11:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-15 9:22 sleep-for documentation and how to pause reliably Eli Zaretskii
2013-02-15 10:19 ` Thierry Volpiatto
2013-02-15 13:18 ` Eli Zaretskii
2013-02-15 20:36 ` Thierry Volpiatto
2013-02-16 8:40 ` Eli Zaretskii
2013-02-17 11:58 ` Xue Fuqiao [this message]
2013-02-17 16:26 ` Eli Zaretskii
2013-02-17 23:41 ` Xue Fuqiao
2013-02-15 16:11 ` Stefan Monnier
2013-02-15 18:24 ` Eli Zaretskii
2013-02-15 20:36 ` Stefan Monnier
2013-03-02 20:48 ` Johan Bockgård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130217195813.634c3e504b81e6220258f785@gmail.com \
--to=xfq.free@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=thierry.volpiatto@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.