From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Speeding up Flymake in emacs-lisp-mode Date: Fri, 2 Nov 2018 12:34:23 +0000 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000669ab0579adc237" X-Trace: blaine.gmane.org 1541162018 28927 195.159.176.226 (2 Nov 2018 12:33:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2018 12:33:38 +0000 (UTC) Cc: emacs-devel To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 02 13:33:34 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 1gIYdn-0007LJ-6n for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2018 13:33:31 +0100 Original-Received: from localhost ([::1]:51319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIYft-000669-Bp for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2018 08:35:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIYez-00065s-Hu for emacs-devel@gnu.org; Fri, 02 Nov 2018 08:34:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIYey-0003RA-QR for emacs-devel@gnu.org; Fri, 02 Nov 2018 08:34:45 -0400 Original-Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]:43785) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIYey-0003NZ-JQ for emacs-devel@gnu.org; Fri, 02 Nov 2018 08:34:44 -0400 Original-Received: by mail-qk1-x736.google.com with SMTP id r71so2679838qkr.10 for ; Fri, 02 Nov 2018 05:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5NCBqMPGoyC8B5p/vRgKqj+sk9MOpK7VlCcJIUJV62M=; b=C/hW5gdz1GHKAlyZX2ijjHAeH8Ki0Q6IcBa7FHC5ZLfPS4gMnZfdFq+Hit9m4LNJ9V /6OrexxGzWzjBQuDd/ncK3Uy3UJg6KngSThWIDHct2o3hdaSTIEP7p60wE/SEtHs92mK 5TQgPPQZPJlJdhRTPL2yV5+sJ10U5VtMCHEJvgxEf1X/xAU4HqrcJ8wNS6CoFs/kAiKB RjseJzJnVaE/f2j7a5KCq3jvX6zl66EeHP8ZymoYEvwQKn3QUj3yKpmlscLMzdzSp2vY VDhAAjeR6j/gG6YHXHz1WjQUansjce/DAHQYZ8QzrgaGLG1iT7d2jBm/PLw8UWG/rkCO CPbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5NCBqMPGoyC8B5p/vRgKqj+sk9MOpK7VlCcJIUJV62M=; b=NWABAhymiQ6+AczZzl+ow4N+1bnFH5Fr8wpM8m1kqpNX4VNOQh3SskSHyAiu9ZYNM/ M5nVkRq+n9pVBQzjfa+eeOkaBAAdDQXSRw12kDT8gp2QfZKUju7o9qI3DI4jNMctwE9y O1BVZ8C1TFia+U8kYo9YEABEskBvupi8Ut0H4MUnHfW7pxTFAIWZdZFECG+BFN/JTnM3 2z2I288fpbcN+gCBncrZCg6iKpYUmdZvLQeI8C6oFA62rG5eSraYLIwqsM4eFYH8MJRU mHu00fNYnhdLtDTAjCPPTQjOxKotziVQk/DKt88yn837nQbbYcIm9OJ1HLQdzd5hztL7 yruw== X-Gm-Message-State: AGRZ1gJVPqVDYmPEhF0Wm004UoZt+e+rM+eeqr5jbuMyfxXLv8U52qWs Y+Q8MzsOPt9LTKMLmwanXwufE+5EqQM3fr5rJQc= X-Google-Smtp-Source: AJdET5eJihDNw7MG1OYFJbKxRHqJb0wEJP1hZxfbYZVFjwP7BWzAI5ll4P63DHQXV7h//kZKuWs6emhMVXrgSSqhf+4= X-Received: by 2002:a37:60c4:: with SMTP id u187-v6mr10068192qkb.234.1541162075054; Fri, 02 Nov 2018 05:34:35 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::736 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:230972 Archived-At: --0000000000000669ab0579adc237 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Nov 2, 2018 at 12:26 PM Noam Postavsky wrote: > On Fri, 2 Nov 2018 at 07:55, Jo=C3=A3o T=C3=A1vora = wrote: > > > It'd probably be better if only one process was launched and asked > > (perhaps using server.el) to compile the files. > > Alternate idea: keep running a single compilation per Emac subprocess, > but tell it what to compile by sending to stdin instead of command > line args. That way, the process startup can happen asynchronously, > and when you want to compile something you can arrange to have a > subprocess ready and waiting for input. > Thanks. First, I was under the impression that stdin/stdout for emacs was not easy. Glad to hear it isn't, but how do I read from stdin? Are you suggesting I keep a pool of ready to invoke emacsen and discard them once they become "dirty"? What do you mean by asynchronous process startup? Isn't that a "stop-the-world" operation however it is invoked? Jo=C3=A3o T=C3=A1vora --0000000000000669ab0579adc237 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Nov 2, 2018 at 12:26 PM Noam Postavsky <npostavs@gmail.com> wrote:
On Fri, 2 Nov 2018 at 07= :55, Jo=C3=A3o T=C3=A1vora <joaotavora@gmail.com> wrote:

> It'd probably be better if only one process was launched and asked=
> (perhaps using server.el) to compile the files.

Alternate idea: keep running a single compilation per Emac subprocess,
but tell it what to compile by sending to stdin instead of command
line args. That way, the process startup can happen asynchronously,
and when you want to compile something you can arrange to have a
subprocess ready and waiting for input.

Thanks.

First, I was under the impression that st= din/stdout for emacs was
not easy. Glad to hear it isn't, but= how do I read from stdin?

Are you suggesting = I keep a pool of ready to invoke emacsen
and discard them on= ce they become "dirty"?

What do you mean= by asynchronous process startup? Isn't that
a "sto= p-the-world" operation however it is invoked?

Jo=C3=A3o T=C3=A1vora
--0000000000000669ab0579adc237--