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: Optimizing performance of buffer markers Date: Sat, 25 Jun 2022 05:27:16 -0400 Message-ID: References: <2c2746e5f2558a87e8eab6f0914264a020173a9d.camel@pm.me> <0E9E702B-B07C-4794-8498-29B9320E14CC@gmail.com> <871qvorqvv.fsf@localhost> <83tu8jq2vl.fsf@gnu.org> <87sfo37etn.fsf@localhost> <834k0jplcm.fsf@gnu.org> <878rpuwm9w.fsf@localhost> <83mteao3oj.fsf@gnu.org> <87edzmv3i0.fsf@localhost> <83k09eo1p5.fsf@gnu.org> <878rpuv17q.fsf@localhost> <83fsk2nyrm.fsf@gnu.org> <878rpr4kd4.fsf@localhost> <8335fzms6q.fsf@gnu.org> <87wndar5tt.fsf@localhost> <831qvikxqo.fsf@gnu.org> <87edzdwdqt.fsf@localhost> <83h749b099.fsf@gnu.org> <83edzdaykm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18163"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: yantar92@gmail.com, casouri@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 25 11:28:35 2022 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 1o525j-0004VW-6w for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Jun 2022 11:28:35 +0200 Original-Received: from localhost ([::1]:42526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o525h-0006KG-9M for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Jun 2022 05:28:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o524c-0005FI-Qd for emacs-devel@gnu.org; Sat, 25 Jun 2022 05:27:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56182) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o524Z-00051c-Qf; Sat, 25 Jun 2022 05:27:25 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4BDD71001CB; Sat, 25 Jun 2022 05:27:21 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DF10410012C; Sat, 25 Jun 2022 05:27:19 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1656149239; bh=8d/FlF+J4m1Zxgztu/FCTNzCYDab2i7BTPe58tRsNpg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=iBaeh508bACOv0V3TdjJ1KeqXo5jdxx8dgsKbXqRHlnMgU0MI+1L++Iiirp2p8A0o Vw0Wl/nF4OTtoVLu7IXEUCyehAzK5zEewZ6nJ26m6S/QnHkwpSW6u0Xu8C7DJZ4WR+ AFKc4tSyEkQ+TvAGpxGgQiS6Fkyp6+Ghcxdh4wSz3xIqjtS9rqpb+hKQWLBOKvQuXJ ieNr2WYFSjveWvCnnx/DuZWyVMk+69DYkFj/qu0H/617iPgCd6q9fg1BRjsKGCiAXe cEfyfoKjzVCjcbzA2ReQnVMNLJpfoK5nF9ZfsOOK52hlC0iqC5NKji0R06L1SEIIuH ufzftCvvmWXCw== Original-Received: from alfajor (smb-adp02.hotspot.hub-one.net [213.174.99.150]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id F0D3D12022C; Sat, 25 Jun 2022 05:27:18 -0400 (EDT) In-Reply-To: <83edzdaykm.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Jun 2022 12:20:57 +0300") 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, T_SCC_BODY_TEXT_LINE=-0.01 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:291592 Archived-At: > If that is going to be our advice, That wouldn't be a general advice, but rather for specific cases where performance proves problematic. In any case, this is quite hypothetical: we don't know yet whether that branch would help Org's specific use-case. And the code needs some work before we can merge it (it's about 5 years old). > it would make sense to reimplement markers as a kind of overlays, so > that Lisp programs shouldn't bother with this trick. That's a possibility, but this would require further changes for the charpos<->bytepos conversion. Stefan