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: Emacs i18n Date: Sat, 09 Mar 2019 22:07:49 +0200 Message-ID: <83imwr7qwa.fsf@gnu.org> References: <87o97aq6gz.fsf@jidanni.org> <83h8ckezyt.fsf@gnu.org> <83o96qegv1.fsf@gnu.org> <32b1ab1b-bef4-629a-8830-b1dcc6915087@cs.ucla.edu> <83a7iae9va.fsf@gnu.org> <05ed2dec-2a84-f7dc-1af5-c9d923992785@cs.ucla.edu> <87bm2p56gu.fsf@mail.linkov.net> <838sxrdgco.fsf@gnu.org> <83mum6bv11.fsf@gnu.org> <87zhq6nwsi.fsf@mail.linkov.net> <8336nxbxfi.fsf@gnu.org> <2539FAB2-2D71-44F5-B8D9-2C4AFE52ACEC@gmail.com> <83wol986to.fsf@gnu.org> <75275F9B-D257-4C9E-85A0-A7F57C93FD64@gmail.com> <83mum48s9t.fsf@gnu.org> <87ef7gbg08.fsf@gmx.de> <83h8cc8gy6.fsf@gnu.org> <875zssb853.fsf@gmx.de> <83wol86jy1.fsf@gnu.org> <03d28738-3cd3-e853-4765-43a7087682f8@cs.ucla.edu> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="238398"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 09 21:08:11 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2iGR-000zuq-4k for ged-emacs-devel@m.gmane.org; Sat, 09 Mar 2019 21:08:11 +0100 Original-Received: from localhost ([127.0.0.1]:34991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2iGQ-0007dG-4s for ged-emacs-devel@m.gmane.org; Sat, 09 Mar 2019 15:08:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2iGK-0007b1-5g for emacs-devel@gnu.org; Sat, 09 Mar 2019 15:08:04 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2iGJ-00077H-I9; Sat, 09 Mar 2019 15:08:03 -0500 Original-Received: from [176.228.60.248] (port=4799 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h2iGI-0003YW-Fj; Sat, 09 Mar 2019 15:08:03 -0500 In-reply-to: <03d28738-3cd3-e853-4765-43a7087682f8@cs.ucla.edu> (message from Paul Eggert on Sat, 9 Mar 2019 11:55:15 -0800) 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.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:233992 Archived-At: > From: Paul Eggert > Date: Sat, 9 Mar 2019 11:55:15 -0800 > > Eli Zaretskii wrote: > > So you are saying that we should have a single catalog for all the > > other .el files, and load it unconditionally in every Emacs session? > > That'd waste memory, no? > Assuming we use GNU gettext, it'd consume virtual memory but not as much > physical memory, as GNU gettext mmaps the message catalog (using PROT_READ so > that it's read-only and the physical data can be shared). Only pages containing > actual translations should need to be brought into physical memory (along with > the indexes to these pages). > > The total amount of virtual memory would depend on the catalog size. A > reasonable upper bound for current Emacs master would be 61 MB (the sum of sizes > of all of Emacs's .el files). Although 61 MB is nontrivial, there should be > little trouble fitting it into virtual memory even on a 32-bit platform. The same is true for the Lisp files themselves. Yet we don't load them all in advance, because that's simply not economical.