From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B6rn?= Bidar Newsgroups: gmane.emacs.devel Subject: Re: Lisp files that load cl-lib in problematical ways Date: Tue, 24 Oct 2023 18:29:55 +0300 Message-ID: <28415.7389820152$1698161464@news.gmane.org> References: <835y38qvlg.fsf@gnu.org> <87bkcx6eci.fsf@dataswamp.org> <83ttqnm4ti.fsf@gnu.org> <83lebyu5yx.fsf@gnu.org> <4684f43123d7dee59461@heytings.org> <835y2xo1a5.fsf@gnu.org> <4684f4312391906f6101@heytings.org> <831qdlo084.fsf@gnu.org> <83edhkmfax.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31198"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: stefankangas@gmail.com, gregory@heytings.org, rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 24 17:30:52 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qvJMq-0007oP-Oa for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Oct 2023 17:30:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvJM8-00049r-Nm; Tue, 24 Oct 2023 11:30:08 -0400 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 1qvJM7-00049T-0p for emacs-devel@gnu.org; Tue, 24 Oct 2023 11:30:07 -0400 Original-Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvJM0-0004pR-T7; Tue, 24 Oct 2023 11:30:06 -0400 Original-Received: from odin (dsl-trebng12-50dc77-87.dhcp.inet.fi [80.220.119.87]) by thaodan.de (Postfix) with ESMTPSA id 15FA0D08DBA; Tue, 24 Oct 2023 18:29:57 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1698161397; bh=Uu/67aK6fYB8UTvKfhUVBa5HVBae9OBbs5h4ytTXNXM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=ZdTYmurDLBCDsOnAb10fWXfcc7ijMUMUy+c5MnEpyf2tElVSfs9M867eN6goK0RyW ddcikMuNeqB1NYxnstE0RQ8L18g6+femiqLYPe48ph77kiY3ZnhAlrVVB1I6y7D6aI H5jbWGehWGOXjzPphxSMzVHpjwm0oeFyNRQtjTr5PIJ0m/BMNpOD/x5oG0j2rn2VUa h4YvCagIuPPpo08rdg3cBBsxF14erES5+Q4m7o0/jvqLPeaQm1T9ThPwXw99M53r3Y q11kbndR2rLkk7T+WYz7i9eDwx4+aX+4fjZRrAGyZqANifLf8+Ghd9GhE89fC3qFQN Jm8HRIRCTC91+nE8bH1rYtiTwg99sMyc/IJyQ7CXD6lVN9XxUQNaXDhptq/ltrwmvP aSLhFoKhQQm1A7M1leOHL+3loSEtt9oUi30ZqyWiGYTtPo9UtdikveGM1VkQQtmXal nr/NXQQUMcS4FYboK467FgJOzxO9aZHGERNpSF1rnOm4S0O6suIVhyyfLTTGgvM/LU 3D1h77Q1f2VGEa3ILTuWEl1PnVYyoTROlfTcdZZ9NjZ1/j3ztsvn2rkWTrDwp+l8Tk QbK8EnKwRV/m75IpyVD0J9Jg7NpZIp/tMIp6PgmuVRClCUh23cJWMMIviqKxlOlrgI wKNx9N5FV03Z+1SmhTjG8yhY= In-Reply-To: <83edhkmfax.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 24 Oct 2023 14:27:02 +0300") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, INVALID_MSGID=0.568, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311799 Archived-At: Eli Zaretskii writes: >> From: Bj=C3=B6rn Bidar >> Cc: Eli Zaretskii , Gregory Heytings , >> rms@gnu.org, emacs-devel@gnu.org >> Date: Tue, 24 Oct 2023 11:10:06 +0300 >>=20 >> Stefan Kangas writes: >>=20 >> > Eli Zaretskii writes: >> > >> >> Preloading unnecessary stuff is a slippery slope that once we start >> >> there's no way of knowing where we end. So let's not. >> > >> > AFAIK, the main drawback is increased memory consumption. The main >> > benefit is that Emacs starts faster. >>=20 >> About how much memory are we talking here? All this sounds like talk >> about micro optimizations. > > If we ignore such "micro optimizations", we will quickly bloat Emacs, > since those small amounts add up. We have a lot of relatively small > potential additions that we make a point of not adding, because if we > decide adding one is okay, then why not add all the rest? We don't > add such stuff to subr.el or to simple.el or to files.el, and keep > them separate, precisely because adding them all will not be > insignificant. I get that point but in this case we talk about doing something slightly different to not load cl-lib while eventually cl-lib is loaded anyway. > >> Emacs speed is more limited about it being single threaded most of the >> time than anything else. > > I don't see the relevance, sorry. We can work on making Emacs faster > without bloating it. >From my pov Emacs start up time or speed is more limted by Emacs being single threaded rather than loading a few kbs of code that will be loaded later anyway.