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.devel Subject: Re: Not using DOC for ELisp files Date: Sat, 08 Jan 2022 09:08:51 +0200 Message-ID: <83iluu4scc.fsf@gnu.org> References: <30e03635-843d-f3be-7709-d4b633b2c90a@raeburn.org> <838rvwdh7h.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30445"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ken Raeburn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 08 08:29:58 2022 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 1n66Ao-0007i9-Bk for ged-emacs-devel@m.gmane-mx.org; Sat, 08 Jan 2022 08:29:58 +0100 Original-Received: from localhost ([::1]:50254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n66An-0000Xz-4D for ged-emacs-devel@m.gmane-mx.org; Sat, 08 Jan 2022 02:29:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n65qe-0000Zm-Cw for emacs-devel@gnu.org; Sat, 08 Jan 2022 02:09:08 -0500 Original-Received: from [2001:470:142:3::e] (port=51624 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n65qd-0007z5-Us; Sat, 08 Jan 2022 02:09:07 -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=WYeKNFwjs9+fSjXGpWjR7R/l4iJ1CY0sMu9PRIbMaX8=; b=EE/HUUhqS+V1 I+IxTAjNx/N20xSIhE8wm7YOxxxXNKmEenTw8IyVHNdWzBM5gqH1phW3XkmmTWvRJBC9NoIR1u4C6 O52RmSA+zMb8q7ub7F+HiAzPJPtV+OYrxlA0f6iLIsfteRvXvTJR/vfDgIEmIVK0FzGp/UJs58m3f RHeRz9EkDAKzhvy9ut6KgJN6QqF+ZiLE4SoCSglcSNqOgDQpX0uZAfoFtwo+NIY7AQSArv75s0iaJ oH0JXXlPa64WjEwQCIdLJbB4unXZuqRt3Z/V+1VlPR2pr6mKBjIX/67gRvax/GVQjzTjrf+znhaV3 tFuSOGD7ZB8cjVbTAsF9mg==; Original-Received: from [87.69.77.57] (port=1630 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 1n65qc-0006yW-Ps; Sat, 08 Jan 2022 02:09:08 -0500 In-Reply-To: (message from Ken Raeburn on Fri, 7 Jan 2022 17:59:25 -0500) 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" Xref: news.gmane.io gmane.emacs.devel:284444 Archived-At: > Date: Fri, 7 Jan 2022 17:59:25 -0500 > Cc: emacs-devel@gnu.org > From: Ken Raeburn > > There was an optimization I did, for platforms supporting the "section" > attribute extension (at least MacOS and the GNU tools on ELF), to group > together the strings in the object file (and hopefully the executable) > so that, if the doc strings weren't actually used, none of those pages > need be paged in from disk, because they aren't intermixed with other > data (except maybe at the ends of the range). But if that support isn't > available, the rest should still work fine. And if the non-Lisp doc > strings amount to less than a megabyte, as I think an earlier email in > this thread indicated, the memory cost of not doing this apparently > isn't huge anyway. Beware: adding new sections to the binary causes problems when the binary is stripped.