From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Preloading seq.el Date: Thu, 29 Aug 2019 21:41:07 +0300 Message-ID: <83y2zbak70.fsf@gnu.org> References: <87imqgjgqm.fsf@gnus.org> <837e6wb0l3.fsf@gnu.org> <87ef14jful.fsf@gnus.org> <835zmgaugo.fsf@gnu.org> <878srcj94g.fsf@gnus.org> <834l20athk.fsf@gnu.org> <874l20j87p.fsf@gnus.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="105868"; mail-complaints-to="usenet@blaine.gmane.org" Cc: stefan@marxist.se, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 29 20:43:52 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i3POg-000RNP-Nu for ged-emacs-devel@m.gmane.org; Thu, 29 Aug 2019 20:43:50 +0200 Original-Received: from localhost ([::1]:53456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3POf-0007d7-A9 for ged-emacs-devel@m.gmane.org; Thu, 29 Aug 2019 14:43:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47070) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3PM0-0006HE-2K for emacs-devel@gnu.org; Thu, 29 Aug 2019 14:41:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i3PLz-0003UT-CW; Thu, 29 Aug 2019 14:41:03 -0400 Original-Received: from [176.228.60.248] (port=3349 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i3PLx-00047k-6j; Thu, 29 Aug 2019 14:41:02 -0400 In-reply-to: <874l20j87p.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 29 Aug 2019 17:35:06 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:239688 Archived-At: > From: Lars Ingebrigtsen > Cc: stefan@marxist.se, emacs-devel@gnu.org > Date: Thu, 29 Aug 2019 17:35:06 +0200 > > (But if you're OK with ;;;###autoload any time we use seq/cl-lib in > those files, then that's also fine with me, but I think that in the long > run, it's preferable to just preload them, because I think we're going > to end up with 80% of them ;;;###autoloaded.) When we come to the point that 80% of seq.el is used in preloaded code, let's talk again. And please note that it is also important _when_ those functions are called and under what circumstances. For example, descr-text.el is autoloaded whenever one types "C-u C-x =", which invokes a function defined in the preloaded simple.el, but we don't preload descr-text.el even though almost all of it is needed when that command is invoked. The reason is that "C-u C-x =" is not invoked frequently enough to justify preloading descr-text.el. So we need to consider not only the amount of called code, but also its callers.