all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Does emacs cache something on windows when invoking call-process?
Date: Tue, 09 Jul 2019 18:27:00 +0300	[thread overview]
Message-ID: <83ftnf5iuz.fsf@gnu.org> (raw)
In-Reply-To: <AxrSFw.tEbcpjNjejKt.OH0pgPYjzkhvcqkaRqOe@freemail.hu> (message from Eighty Megabytes on Tue, 9 Jul 2019 16:03:39 +0200 (CEST))

> From: Eighty Megabytes <emacsuser@freemail.hu>
> Date: Tue,  9 Jul 2019 16:03:39 +0200 (CEST)
> 
> I have the same search command line which is practically instantaneous in the windows command prompt, but it takes several seconds when executed via call-process.
> 
> So I try it in the command prompt, it's instantaneous.
> 
> Then I try the same command line from emacs via call-process and it takes several seconds.

This doesn't happen to me: I get instantaneous response from Emacs as
well.  On the first attempt as well on the subsequent ones.

> 1. Why is the same command much slower when invoked via call-process?

Do you have some antivirus installed, per chance?

> 2. What does that first call-process call does/caches in emacs which makes subsequent calls quick until it forgets something and it's slow again?

AFAIK it does nothing inside Emacs or by Emacs.  It might do something
on your system level, though.  But that's out of scope of Emacs.



  reply	other threads:[~2019-07-09 15:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-09 14:03 Does emacs cache something on windows when invoking call-process? Eighty Megabytes
2019-07-09 15:27 ` Eli Zaretskii [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-07-09 15:58 Eighty Megabytes
2019-07-09 16:16 ` Eli Zaretskii
2019-07-09 17:08 Eighty Megabytes
2019-07-09 17:27 ` Eli Zaretskii
2019-07-09 20:54 Eighty Megabytes
2019-07-09 21:30 ` Stefan Monnier
2019-07-10  5:31 Eighty Megabytes
2019-07-10  6:08 ` ISHIKAWA,chiaki
2019-07-10 14:33 ` Eli Zaretskii
2019-07-10  8:34 Eighty Megabytes
2019-07-10 21:10 Eighty Megabytes

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=83ftnf5iuz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.