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: Collecting markers with MPS Date: Wed, 24 Apr 2024 19:26:20 +0300 Message-ID: <867cgm3exf.fsf@gnu.org> References: <87cyqfjk6n.fsf@gmail.com> <86sezb2oj2.fsf@gnu.org> <874jbrjg04.fsf@gmail.com> <86o79z2h7y.fsf@gnu.org> <87wmomiz0x.fsf@gmail.com> <86bk5y3gf4.fsf@gnu.org> <87jzkmivel.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10907"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 24 18:27:25 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 1rzfSu-0002YJ-8D for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Apr 2024 18:27:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzfSL-0007uN-Bi; Wed, 24 Apr 2024 12:26:49 -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 1rzfSI-0007ta-0m for emacs-devel@gnu.org; Wed, 24 Apr 2024 12:26:46 -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 1rzfSH-0005uZ-L6; Wed, 24 Apr 2024 12:26:45 -0400 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=5gHz2jx0qeJb3tpfwgpQDL5ftO+fz9Z0xzZ8ycKeYmY=; b=Sl0+FOjEk4Hp ywuowbYJG9jc4GVY9J9fbNrw+WuPcoZiPrEleaKBGr9948oAIKYxN2ZD+/GjTsJBSsSsTONLOR9sl NN7O1kpE3/50HFIIjzD7BP6r7ze/45YCAdap4ymFY/mvuig8rgwreFU05OeymjNGgoLG65lmwETyQ hLtmNPBtQE29+TpsbEAsU8H4WSPYko+UHso8Q1YXkDb3Mmvv9ac2kaA710C7Pfo+SJ5c1xrFt0gh/ aRTZ8QfEHUmNJewuvvRFgXulgK6p0Xv9yRwzvdbHxNMeYsVPmumFR3V+t/E6ByL4zs4p4HqAC2caF RuDgRIoB1oC27BcTGpeVMg==; In-Reply-To: <87jzkmivel.fsf@gmail.com> (message from Helmut Eller on Wed, 24 Apr 2024 18:21:22 +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:318037 Archived-At: > From: Helmut Eller > Cc: gerd.moellmann@gmail.com, emacs-devel@gnu.org > Date: Wed, 24 Apr 2024 18:21:22 +0200 > > On Wed, Apr 24 2024, Eli Zaretskii wrote: > > >> We could also provide functions to manually unlink markers from the > >> buffer that programmers could use to keep the slowness in check. > > > > If we can do this manually, we should be able to do it from a timer, > > no? > > Yes, but only the programmers know which markers they no longer need. Sorry, I don't follow: how does the old GC detect dead markers? Why cannot a function we write do the same? I don't believe programmers will know which markers are no longer needed, primarily because most markers are completely unknown to programmers, Emacs creates them for its own purposes and never exposes them to Lisp.