From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Does emacs cache something on windows when invoking call-process? Date: Tue, 09 Jul 2019 18:27:00 +0300 Message-ID: <83ftnf5iuz.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="48397"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 09 17:32:09 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hks6A-000CKS-RB for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2019 17:32:07 +0200 Original-Received: from localhost ([::1]:51088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hks3Y-0002uf-FH for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2019 11:29:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44956) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hks1V-0000bQ-AF for help-gnu-emacs@gnu.org; Tue, 09 Jul 2019 11:27:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hks1V-0001T1-7M for help-gnu-emacs@gnu.org; Tue, 09 Jul 2019 11:27:17 -0400 Original-Received: from [176.228.60.248] (port=1251 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hks1T-0004QQ-Fc for help-gnu-emacs@gnu.org; Tue, 09 Jul 2019 11:27:16 -0400 In-reply-to: (message from Eighty Megabytes on Tue, 9 Jul 2019 16:03:39 +0200 (CEST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121124 Archived-At: > From: Eighty Megabytes > 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.