From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Skipping unexec via a big .elc file Date: Tue, 4 Apr 2017 08:14:48 -0400 Message-ID: <6d8c814a-4f75-2447-8985-4d71598311cd@gmail.com> References: <8A8DA980-13A7-4F8B-9D07-391728C673C9@raeburn.org> <831su4dmn4.fsf@gnu.org> <87h9300x5n.fsf@linux-m68k.org> <734D2132-71FD-414D-B091-629189742DB4@raeburn.org> <83a8889ede.fsf@gnu.org> <144D5F87-D876-485D-BAB3-2AA93627272A@raeburn.org> <83inmq53xk.fsf@gnu.org> <96D35768-314C-43F5-BD5E-B12187759DCA@raeburn.org> <123104DD-447F-4CDB-B3A0-CED80E3AC8C9@raeburn.org> <20170403165736.GA2851@acm> <2497A2D5-FDB1-47FF-AED3-FD4ABE2FE144@raeburn.org> <83lgrhpalq.fsf@gnu.org> <0D99B4FE-FEEF-4565-87D6-E230A05DEF3C@raeburn.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1491308147 13176 195.159.176.226 (4 Apr 2017 12:15:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Apr 2017 12:15:47 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 04 14:15:38 2017 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 1cvNMs-0001MQ-C9 for ged-emacs-devel@m.gmane.org; Tue, 04 Apr 2017 14:15:26 +0200 Original-Received: from localhost ([::1]:35498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvNMy-0003JD-CZ for ged-emacs-devel@m.gmane.org; Tue, 04 Apr 2017 08:15:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvNMM-0003J6-J6 for emacs-devel@gnu.org; Tue, 04 Apr 2017 08:14:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvNMI-000144-KU for emacs-devel@gnu.org; Tue, 04 Apr 2017 08:14:54 -0400 Original-Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:36254) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvNMI-000140-FT for emacs-devel@gnu.org; Tue, 04 Apr 2017 08:14:50 -0400 Original-Received: by mail-qk0-x22c.google.com with SMTP id p22so139128187qka.3 for ; Tue, 04 Apr 2017 05:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=r8qNmVAJ5RyHTIpHxn2YOZ2eMB0hyC16d0ZHC7Rg52Q=; b=RMxFOQCAW/dDkKjZuxnW7EvQktxLG8tQgar47fJfS9PDn9oMxzzRaI9qo3LFis1rAq y3P5MrQ2vxl35boBZtnDF/LqO1qqSM28iDVyVoPZb1whsZKGIOfFXdGWn3/NU7v7fteQ lZGILtFG6p/Vxqm0HBA+2mbVw4EjlqYhNqJ6TBcuy0yh5Q3Yx7HKfvDvn+2gRBWqKzLf PpMD91o9WyzkIHjK5BoofhTKNZAKlS6PHrAO/8FaXSqcXP7Fmh9nu9c3iiJlc9x0lv5U hETOqL4XrUnSKUIBwK+HIvo6V2S6i7TzRPViPiXKGIV7X3aNM/Gl6lwfEKmu74JguO9R ct9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=r8qNmVAJ5RyHTIpHxn2YOZ2eMB0hyC16d0ZHC7Rg52Q=; b=QMrb9lfki6yQDDyKwU/0Zhmy7kjE8xp1WRqWjNlWyQ8o1xPe8PqPaRqcwkovH2Uixi DGYrpY+AD1mBP4cAES1zpWnlpzMbZsC2fI4ALVnsYQO0S1SYJ2jMrSKxFY/eXwRyIDr2 Onve6R+kHJIig1aCrtTlchEO1TZqWGCRTyNAIPO4CSeWle5JPHs6emuHG2PxsGg7FcPv bHbEIwoYoP5Ew5KR4C1z/v7Lsg7F1nRh6AW5Jq8tnktw6Ol/UUMli9NmKlSzbx2Ilk5f wXHEOJBRo6tNaun5Dq/huT3ouRCG8zB2kHYraRop9ZBGqGPd4J3i6GD2aioaeVNB+g1i AxIw== X-Gm-Message-State: AN3rC/7xL3ZB4nu0aXdjNzrhH6hq57xpukzYTDhcMh5rbmAdX3I9EAfDUXM9URQT3ArhUQ== X-Received: by 10.55.217.71 with SMTP id u68mr2421138qki.272.1491308089756; Tue, 04 Apr 2017 05:14:49 -0700 (PDT) Original-Received: from [18.189.29.195] (dhcp-18-189-29-195.dyn.mit.edu. [18.189.29.195]) by smtp.gmail.com with ESMTPSA id q188sm11695980qkf.20.2017.04.04.05.14.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Apr 2017 05:14:49 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::22c 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:213637 Archived-At: On 2017-04-04 06:27, joakim@verona.se wrote: > > But on the other hand I think there is a valid use case for using Emacs > for things like batch processing, web servers and such. And in those > cases startup time matters. Again otoh, you might want to use > emacsclient together with a long running emacs in those cases. But I'm > not really using emacs for that sort of thing so one should listen to > the people actually doing it primarily. I use Emacs in batch mode a lot; using a server is tricky, because anything you load or change on one run persists until the across future executions (for example one execution might load a file, then the next one might forget to load the file explicitly, but still work well because that file was previously loaded; when you run the program again in a fresh instance, things fail). Additionally, there are bugs in Emacsclient that make it tricky to use on its own, so my current code relies on two instances of Emacs: a long-lived one and a short-lived on. THe short-lived one is used to connect to the long-running server. (This saves a lot because most of the execution time is otherwise spent loading packages).