From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Speeding up Flymake in emacs-lisp-mode Date: Fri, 02 Nov 2018 10:25:11 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1541168618 23658 195.159.176.226 (2 Nov 2018 14:23:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2018 14:23:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: =?windows-1252?B?Sm/jbyBU4XZvcmE=?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 02 15:23:33 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gIaMH-00063d-Fh for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2018 15:23:33 +0100 Original-Received: from localhost ([::1]:51926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIaON-0000Su-Uf for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2018 10:25:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIaOC-0000Q7-Gr for emacs-devel@gnu.org; Fri, 02 Nov 2018 10:25:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIaNu-00008m-PM for emacs-devel@gnu.org; Fri, 02 Nov 2018 10:25:22 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:43228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIaNu-00007c-3T for emacs-devel@gnu.org; Fri, 02 Nov 2018 10:25:14 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id wA2EPB4D021630; Fri, 2 Nov 2018 10:25:12 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id C7333AE156; Fri, 2 Nov 2018 10:25:11 -0400 (EDT) In-Reply-To: (=?windows-1252?Q?=22Jo=E3o_T=E1v?= =?windows-1252?Q?ora=22's?= message of "Fri, 02 Nov 2018 14:06:18 +0000") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6410=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6410> : inlines <6950> : streams <1803103> : uri <2742965> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230978 Archived-At: >> (let ((proc async--eager-process)) >> (async--transmit-sexp proc ...) >> (setq async--eager-process (async-start-process ...))) > > Yeah, but I don't see why I need to restart async--eager-process > (assuming that's what async-start-process does). Because the process that was in async--eager-process has been "consumed" for the current sexp, so you need to create a new one which will be used for the next request. But indeed, if the problem is that async-start-process takes a long *synchronous* time, then swapping the two won't help. > Is async.el in ELPA? Yes, and more specifically in GNU ELPA. Stefan