From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Newsgroups: gmane.emacs.devel Subject: Speeding up Flymake in emacs-lisp-mode Date: Fri, 02 Nov 2018 11:54:38 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1541159573 17138 195.159.176.226 (2 Nov 2018 11:52:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2018 11:52:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 02 12:52:49 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 1gIY0O-0004Mh-Gj for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2018 12:52:48 +0100 Original-Received: from localhost ([::1]:50943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIY2U-00015j-Qc for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2018 07:54:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIY2K-00013j-Kv for emacs-devel@gnu.org; Fri, 02 Nov 2018 07:54:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIY2F-0005rF-CG for emacs-devel@gnu.org; Fri, 02 Nov 2018 07:54:48 -0400 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:54557) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIY2F-0005pR-1d for emacs-devel@gnu.org; Fri, 02 Nov 2018 07:54:43 -0400 Original-Received: by mail-wm1-x32b.google.com with SMTP id r63-v6so1743780wma.4 for ; Fri, 02 Nov 2018 04:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:user-agent:date:message-id:mime-version :content-transfer-encoding; bh=VoFDGxCUO7BFE65XpH3e3cgO7i8qwBbbExSkrrCSEQw=; b=G3Yz/C8SDhNqV8IcSN768HZlCWVfcRAHK7QTpYEySoak32s3Hw4rZm9rXX43K9LmcB m74m69y8amM6VtBLx3yCp+wWWGsqxavsAOqvldqcSAx8xdRb58NrwCMCscqArTNRUENw BOz2go++nVAlMphozNGenxG7j7BM0lIXeG8LgV+qbdhQ9F29TQBGK/oNOgOdootK6zaa DS2G+xzhdDJD5m8zWmJ5tE4ET78KU0dVkn3BOV+Bbpa8ZbGa7bsfKdu3Mff+NDSUqit5 2wnDKSwE0bIjkqu2iY9eNvdv4hNuehwKOMgW77TCj4e6NrA4IH4gSeS5jJj6hmIS9gKc vzxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:user-agent:date:message-id :mime-version:content-transfer-encoding; bh=VoFDGxCUO7BFE65XpH3e3cgO7i8qwBbbExSkrrCSEQw=; b=NRItOI7F0Pdtl83m1NJzF4J1WyH3MxVJ9eOdvVciPuuuI/EH5aANMo1iCqUIr4WNVx nUB5XXaqRUZHKmP0qWslZjogG4veoBvZd0iq+SElJWUgq9TzUZha39THeK6T/lL9LtLn aJetovGTXrYHt3UjpPGlcinwGUE6M4lnNIm5k66EzBdk0p3uoOFSaIrzFh+VAnM9t4Nj dOY3pHPCB4Hpo3OrQNfJhz14l8HwdE//FpWbiwBdqrdX/GkxZsifDjU6genheF4+KXY8 oR2weJItNL4Dffe44txQO1BxGVADtV+VlaHTKc6v1ZLtI2a8bTXa2UX0GBw/G0mNBPS2 OqXg== X-Gm-Message-State: AGRZ1gIC8wRxQEzi0u1MJ46qLojCofG44uMBzHx5nIGiFG4cHVWhsyBx d1waBqGqA3krdRyi0gfN5nyBPeeB X-Google-Smtp-Source: AJdET5f3lRw4JG+nC8f5Yb9sdvAJdxpQdiM6oP5OKbEJq6DCzhdkcC2chtGugTvHg62mFW/kyvPjFA== X-Received: by 2002:a1c:1bd6:: with SMTP id b205-v6mr485361wmb.50.1541159681263; Fri, 02 Nov 2018 04:54:41 -0700 (PDT) Original-Received: from GONDOMAR.yourcompany.com (mail3.siscog.pt. [195.23.29.18]) by smtp.gmail.com with ESMTPSA id k5-v6sm15206251wre.82.2018.11.02.04.54.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Nov 2018 04:54:40 -0700 (PDT) X-Antivirus: AVG (VPS 181102-0, 02-11-2018), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32b 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:230969 Archived-At: Hi, If you've tried M-x flymake-mode in emacs-lisp sources, you'll have noticed there's a byte-compilation backend. This relies on launching an external 'emacs -Q' on an idle timer which does little but byte-compile the a file with the buffer's contents and collect messages, which are then used to annotate the buffer. It works very well on Mac and Linux, but on windows is unusably slow (presumably) because of a ~1 sec process-launching overhead. It'd probably be better if only one process was launched and asked (perhaps using server.el) to compile the files. But this would have a major disadvantage over the current approach, which is that the elisp runtime is tainted by previous compilations. The external process approach doesn't have this disadvantage, since every emacs is clean when launched. Which brings me to my question: is there a way to re-flash the current emacs's image with a brand new one, or to erase any side-effects of previous byte-compilations? The only pitfall would be that I would need server.el's bits to escape this reflashing otherwise I would be locked out. Thanks, Jo=E3o