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: MPS: staticpro everything Date: Wed, 01 May 2024 15:24:14 +0300 Message-ID: <861q6lpvo1.fsf@gnu.org> References: <86jzkhu5rv.fsf@gnu.org> <87ttjlabic.fsf@gmail.com> <87v8408wsr.fsf@gmail.com> <87o79sasl5.fsf@gmail.com> <87plu72y8h.fsf@gmail.com> <877cgfwe5g.fsf_-_@gmail.com> <871q6mptkj.fsf@gmail.com> <87o79qng1p.fsf@gmail.com> <87ikzykkfm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9355"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eller.helmut@gmail.com, emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 01 14:25:04 2024 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 1s291D-0002CG-8B for ged-emacs-devel@m.gmane-mx.org; Wed, 01 May 2024 14:25:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s290Y-0004ef-VL; Wed, 01 May 2024 08:24:22 -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 1s290X-0004e5-97 for emacs-devel@gnu.org; Wed, 01 May 2024 08:24:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s290V-0007QG-3b; Wed, 01 May 2024 08:24:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=5eB2I5dRXKZYDVt/NjRf1ophEEZ+BoEFoTF8QO11nA0=; b=X7goPFtSrtHVj/wlcgP/ MlXpxHBDpz3P/s8nXORg5btvko+zenJmxV1ytkwGYJkG0DL9AOrYtn3V5QbuEXrTnbnjF2ohK52aj 3zX0DoFAHXJdya7x50m2ZYgSm1PBAPmymPNIo9IFpwHuKmHOn/aGCdWBo+v5vbycuaLrgJ+RBLixZ 8oHRpO3mIIZRQvvMMzFZnJkecI6REWI7f71kJgNtFoN0F2RcJT6KaMb/xa29u1y4z8F6TQyjzMVzy teaiwEKIkqJvySwjSXbuJ15+6i51hNP5Wq/YCZfqSJUZOtsHUdp2p46jfmZIjX1+tlNWUuaXnxF9j uXdtZq/e5tgY5g==; In-Reply-To: (message from Gerd =?utf-8?Q?M=C3=B6llmann?= on Wed, 01 May 2024 10:48:05 +0200) 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:318467 Archived-At: > From: Gerd Möllmann > Cc: Eli Zaretskii , emacs-devel@gnu.org > Date: Wed, 01 May 2024 10:48:05 +0200 > > Helmut Eller writes: > > >> A cheaper alternative would be to make that whole thing an ambig root, > >> so that the string data referenced from char *source fields (interior > >> pointers) become immovable. > > > > Maybe we should move strings to the LO (Leaf Object) pool which doesn't > > move blocks. > > Yes, that would might be an alternative. > > If LO is used to allocate large numbers of small objects, the garbage > collection performance will degrade. For leaf objects that can move and > be protected, it is better to use AMCZ (Automatic Mostly-Copying > Zero-rank) instead. > > What large and small means in that context is any ones guess :-). Lisp strings in Emacs can be very large, though. Example: any call to buffer-string. Another example: strings in the kill-ring obtained by copying or killing large buffers.