From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: emacs empty startup time increased from v 27.1 to 29.0 by factor 3? Date: Fri, 27 Jan 2023 09:35:53 +0200 Message-ID: <83fsbwctuu.fsf@gnu.org> References: <873581tkc0.fsf@no.workgroup> <83pmb5i90e.fsf@gnu.org> <87a624zw0e.fsf@no.workgroup> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19777"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 27 08:36:50 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pLJI1-0004ug-R7 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Jan 2023 08:36:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLJHO-0003Bs-JS; Fri, 27 Jan 2023 02:36:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLJHN-0003Bf-9N for help-gnu-emacs@gnu.org; Fri, 27 Jan 2023 02:36:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLJHM-0005TT-MK for help-gnu-emacs@gnu.org; Fri, 27 Jan 2023 02:36:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=m70W2FZmBC3SXSs8DJO6suIFnwnXZB0ddp4XVFd3eog=; b=gtmz83BcIHne LHNUiRLJUrq+vYlS9CTitaMjQPxnrv3NwYkEj561x1FuGNmUJMhVrI2of4X2Nz9TxbGdvuB65rpkO d2gCP/bO5gjn/SfY8s4IJkUrQlp/38N5rcijdK2W/jZd8dMUIo76h88VrmJ0z+/13X0qY9tLDTX6P lxfO6tt4X+ZpdJ3xRRVuBcZvtkV94n2R1XFI9SnBsIDljrDl6n32WK6culOXDG8tnfhlD9lC/EgUO T5lH3vV6+gcgKVbhzGyfPh3j9nn9WAVrp0rUIZjFxjeFpduYNKdiR7ECHyRGPCFmW4DFO6zyw0tbO q9bmhRXmzWESmgx3oEecdw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLJHM-0006UQ-5S for help-gnu-emacs@gnu.org; Fri, 27 Jan 2023 02:36:08 -0500 In-Reply-To: (message from John Yates on Thu, 26 Jan 2023 20:16:36 -0500) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142532 Archived-At: > From: John Yates > Date: Thu, 26 Jan 2023 20:16:36 -0500 > > I work on a product whose structure involves literally hundreds of > DLLs / SOs. We tolerate slow start-up in-house because it optimizes > the compile / edit / debug cycle. How many hundreds? Emacs 29 loads almost 300 *.eln files at startup. > Packaging the final product involves an extra step to collapse our > hundreds of images into just a handful via a secondary link step. > I wonder if there is anything analogous that Emacs could do. I'm not sure this is possible with loading natively-compiled Lisp in Emacs, because there are some unique conditions and requirements in our case, like the need to be able to run both installed and un-installed Emacs, find the correct *.eln files on the system, etc. It isn't like loading a shared library from a system-wide directory where shared libraries live. In any case, please start a discussion about this on emacs-devel, and please CC Andrea Corallo , who developed the native compilation and tried several alternatives for dumping Emacs with natively-compiled Lisp before arriving at what we do today. It's a complex problem with many facets.