From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: persistent data feature Date: Fri, 10 Dec 2021 12:18:23 -0500 Message-ID: References: <87tufmjyai.fsf@gnus.org> <877dcil2sj.fsf@ericabrahamsen.net> <87czm98qi1.fsf@gnu.org> <87o85tcwm0.fsf@ericabrahamsen.net> <874k7ljwkr.fsf@gnus.org> <87fsr5cuzq.fsf@ericabrahamsen.net> <878rwx8mdn.fsf@gnu.org> <87r1aphuei.fsf@gnus.org> <837dcex6ub.fsf@gnu.org> <87bl1p10js.fsf@gnus.org> <877dccsi69.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="28144"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Tassilo Horn , "rms@gnu.org" , Eric Abrahamsen , cesar mena , "emacs-devel@gnu.org" , Pip Cet , "larsi@gnus.org" , Eli Zaretskii To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 10 18:19:34 2021 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 1mvjYT-00074B-Ek for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Dec 2021 18:19:33 +0100 Original-Received: from localhost ([::1]:40346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvjYS-0000DE-33 for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Dec 2021 12:19:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvjXT-0007kL-TV for emacs-devel@gnu.org; Fri, 10 Dec 2021 12:18:31 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:51714) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvjXR-0008P6-Dw; Fri, 10 Dec 2021 12:18:31 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CBA68805F9; Fri, 10 Dec 2021 12:18:25 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 7789180590; Fri, 10 Dec 2021 12:18:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1639156704; bh=Blqn7sr7Uuh4zztrqhBPIWk2xQCYT84XXJ2+wVEFaGI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ErccooBte/b0ny8j/T6RTCx+PwmFmHI13Tna4XV/o6JGhJpDDlNIREWR8IUvBGg+q ZWAC6bwJyObpAs+rf70BNMw15HYYhQr/NRXnK6Pf+cTjBcu9EB/CiX094hDf8tEtkr omRNwH8+65hKtdI4yWj+Eizp6n0/BTXdVYNH1gVMbtAgSqX2uo6/oLMjjqJK+BDg+h 1KPDVN8yHz7rzdBtApgdp0amGFf0dnAIktC1Xxod0tyxEhYEmq4R8fa1hHcCN6JcI6 /WASqj9TkEViC5SFKb/jrouinHyacZ2+qRDKhUScdX018tRafWzivE2E6qPdEAeplx 8HFtGXNC42xCQ== Original-Received: from ceviche (modemcable222.77-161-184.mc.videotron.ca [184.161.77.222]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3044B120211; Fri, 10 Dec 2021 12:18:24 -0500 (EST) In-Reply-To: (Qiantan Hong's message of "Fri, 10 Dec 2021 13:38:41 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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" Xref: news.gmane.io gmane.emacs.devel:281608 Archived-At: > I think in your case, even if the db quadruples, it=E2=80=99s still < 20M= B in > textual representation and probably much smaller when resided > in the heap. The textual representation can easily be smaller than the in-heap representation. A cons-cell typically uses up 16B nowadays, and a string uses 32B in addition to the bytes of the actual characters. Stefan