From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: dangling markers Date: Sat, 29 Jun 2024 20:02:41 +0200 Message-ID: References: <87v81u85hv.fsf@localhost> <87frsx81m2.fsf@localhost> <87cyo180y2.fsf@localhost> <874j9d7zqe.fsf@localhost> <87sewvg6lw.fsf@localhost> <86ed8fiug3.fsf@gnu.org> <86bk3jirx7.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="26296"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: yantar92@posteo.net, monnier@iro.umontreal.ca, emacs-devel@gnu.org, eller.helmut@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 29 20:03:50 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 1sNcQP-0006cy-PY for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Jun 2024 20:03:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNcPT-0001zz-Jx; Sat, 29 Jun 2024 14:02:51 -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 1sNcPR-0001zU-MZ for emacs-devel@gnu.org; Sat, 29 Jun 2024 14:02:49 -0400 Original-Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNcPO-0001Yx-KL; Sat, 29 Jun 2024 14:02:47 -0400 Original-Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-425624255f3so9927165e9.0; Sat, 29 Jun 2024 11:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719684163; x=1720288963; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iwSH1LJq/pN/9m7X5t4kQ5P+v6OlYNlXlEM5HyT6hE0=; b=TM3iXCqjsr9AOMh2J2xFSwLLh610J1KjMnx0M11aKXRArNDmP47u/oZpR9ekGqG9Jj yP5Oekgj0AKlVby0eixrqKuOiE4Y7zCZbNf8GDssfdVWWAuywGLWznn/3vWYbdqOPIrL +iODQrSlH0z2o35rd/ZbzKK1shEXKuOVklvnQ5pftxTf7VD6mEofpUzrFjtzKNhA3NeU JhSzfMmhe0b6/eCOad2IOdXSe/+VaphuQK13m5MZvBMhVPS8Nvugun7z0xh3SNjn6exa WQAjiR8194g8Jbm+SBOz/U0+FvaZTT4nJHL7ex9WlvGKFfkKZB9I96Tm4JUAkCZVQxow SDZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719684163; x=1720288963; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=iwSH1LJq/pN/9m7X5t4kQ5P+v6OlYNlXlEM5HyT6hE0=; b=DqnGU/xIQOCPpOpa+qx7wHrAjRa/mZuRRko+Ghgy/YU80Ep91suOZ1W0o0ET5s5PXf ct9xtoEe6hVX0Bh3ujxQcxtQwGGlVmEgWbI6ofBipXHL2WtYaa1wT3N1meLOCc24s+/Y 6m8KQaAmyf+QebzTCB8QYQ4OxTYMIw+yZ1w/bZXpV8D9hT2A+oYkpLgxnRhyYHakRuSx jK4kDke4YodJVeM6C5O7qxD9Q2a+fN2jYXJggtR9nXp58m7o5JR4Q1X+cNNHfOJQvupt 64noUJ/vv4Fc1fz7qB6Ca7bO/n80WjC/xnVdUxni2f4MFcIeTqdXa+MEb6fytxmYdsDF Oukg== X-Forwarded-Encrypted: i=1; AJvYcCVzM9UCNqiwtm1Tt0otn37T8Xn1GXbDcYOt2d6GboT+iJuc8/dcB5o4Erzp5pg9tWEVEXyEjyXN2LuzViBKFRxZ6CY/ X-Gm-Message-State: AOJu0YyHF9HRO79yUX4aMVTGoKoth0wkqCf6y7atniC+UUKvGCqJ1dN4 3cvF1TdXLSwLvfai8o2gpPy18tpIqQwSUMjCvcwAWfoy7qCTyqfb X-Google-Smtp-Source: AGHT+IGdPRlgqbn40x+HXBQWugIxczzQdQZbD5T5W9AURY1WgF19kP7brUK1WvkMx4FF6bTjWxOO2A== X-Received: by 2002:a05:600c:1c9f:b0:424:895c:b84b with SMTP id 5b1f17b1804b1-4257984ca62mr14443785e9.4.1719684163153; Sat, 29 Jun 2024 11:02:43 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36598.dip0.t-ipconnect.de. [217.227.101.152]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256b09890dsm85307755e9.36.2024.06.29.11.02.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jun 2024 11:02:42 -0700 (PDT) In-Reply-To: <86bk3jirx7.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Jun 2024 20:23:48 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320873 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: yantar92@posteo.net, monnier@iro.umontreal.ca, emacs-devel@gnu.org, >> eller.helmut@gmail.com >> Date: Sat, 29 Jun 2024 19:17:21 +0200 >>=20 >> And let me add a question: do we know for sure that these markers stem >> from char<->byte position code? > > By definition, yes: I meant to use this instead of the markers that > the char<->byte position code creates when it finds long stretches of > text without any markers in it. IOW, this code from marker.c: > > /* If this position is quite far from the nearest known position, > cache the correspondence by creating a marker here. > It will last until the next GC. */ > if (record) > build_marker (b, best_below, best_below_byte); > > (there are 4 such calls in the conversion routines). Sorry, I've asked not precisely enough. Do we know the percentage of markers generated by that code? I mean, of the 500K markers Ihor sees, how many could be spare?