From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Speeding up Flymake in emacs-lisp-mode Date: Fri, 2 Nov 2018 09:26:13 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1541165076 23257 195.159.176.226 (2 Nov 2018 13:24:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2018 13:24:36 +0000 (UTC) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 02 14:24:32 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 1gIZRA-0005xL-3n for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2018 14:24:32 +0100 Original-Received: from localhost ([::1]:51693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIZTG-0005Dq-No for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2018 09:26:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIZT5-0005BO-5S for emacs-devel@gnu.org; Fri, 02 Nov 2018 09:26:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIZT4-0006hA-5n for emacs-devel@gnu.org; Fri, 02 Nov 2018 09:26:31 -0400 Original-Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]:46233) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIZT2-0006e9-Vw for emacs-devel@gnu.org; Fri, 02 Nov 2018 09:26:29 -0400 Original-Received: by mail-oi1-x236.google.com with SMTP id k64-v6so1531102oia.13 for ; Fri, 02 Nov 2018 06:26:26 -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=cwDjOn6VH2XMD7CTtKFa7oI6ozI+7hx+TGr09Nziia0=; b=eFYgJJ9cir0lqXKzveVCpQO7rB6X2YYlnjp8LorFVkJjAD6Ir33MTykUbGbICMcaoD MuWYz63PQsuAIkClCahRjNBh4nSTOuVyEZbqFVTNbuvFUUJ1jdE3iTDQKWPPK3dvbmlP vvPVF78RibMhhOo4xgo7Pj0H8SZsBPMLxpgEWiRJ+ojQibRoBJtWgunuhkhYMLQpbTf3 QFYc6Tapy3u9O5lC2zYfnopzMVjZ8yZ+1glPBy3H5nRauLFGvFQZOqD2rNMiv3YwrnY7 S/qEItk/qcrateYgdrSY4sevDgMgSywsYZhQDMkE84Iec7QqDuHFBnIXWl7LGBwSYO+A MzVA== 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=cwDjOn6VH2XMD7CTtKFa7oI6ozI+7hx+TGr09Nziia0=; b=BYFF6jAM4QnyegJ0uU2YTG1sutq1q6UEIyPtGPT9eR6cYtmianrMCi+5la2vor7JZ+ zKQHWN6r+uGUB3Nf3bgTHiTElLKjGDNafYIIXSOp+KUbOzXYbWmMHGN7xXmnx5g9fi7m ZzeUk/dUM0PQcKiFnoVcKJGLm7mKdMjnNNaDugGFUSlr+80PiIq6nYB8Ph90hXKWMX4q NQQRw5daYy6Baq2iYH1SfIIjRSxzeln+kw8mtbium1SVAXTgmfCkXvVs2chAfkXlB1Yn e1iwGfHaC3whC6KJcCXH3fNZnaLwdPOm5y5GkT7ujLXtk8ub9+s475GCgGq3U3A+YVoW XsCg== X-Gm-Message-State: AGRZ1gI1OpQrCZQn07nCI5+pabkgFyqgc2YK5dZ6hOYvc3DRvLFSJ6CD OyGLb7zMlIT7B3TFD4L1C1BUZdaImTUbZ5mHoqE= X-Google-Smtp-Source: AJdET5eqwKjCE+WkDSnbTX5npO//NRwemDGgG6wnXQJGD/JZ9YYbZeu+lCrcRiNlNERuvIogSRkFRIrOj1m+ARQPwa0= X-Received: by 2002:aca:f341:: with SMTP id r62-v6mr7143344oih.230.1541165185215; Fri, 02 Nov 2018 06:26:25 -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::236 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:230974 Archived-At: On Fri, 2 Nov 2018 at 09:12, Stefan Monnier wrote: > > > First, I was under the impression that stdin/stdout for emacs was > > not easy. > > Usually it's not, but when running in batch mode it's not so bad. Yup, (elisp) Batch Mode: input that would normally come from the minibuffer is read from the standard input descriptor. > > Glad to hear it isn't, but how do I read from stdin? > > async.el does it with (read t), IIRC. read-from-minibuffer should also work if non-sexp input is wanted. >> What do you mean by asynchronous process startup? Isn't that >> a "stop-the-world" operation however it is invoked? The subprocess created by make-process (or start-process) doesn't block the parent Emacs, it runs in parallel. (benchmark 1 '(call-process (concat invocation-directory invocation-name) nil nil nil "-Q" "--batch")) ;=> "Elapsed time: 0.185000s" (benchmark 1 '(start-process "emacs" nil (concat invocation-directory invocation-name) "-Q" "--batch")) ;=> "Elapsed time: 0.031000s"