From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Gap buffer problem? Date: Thu, 12 Dec 2024 00:11:54 +0200 Message-ID: <9d3ea25a-3dc5-40ad-9e63-6511c2076c6d@gutov.dev> References: <8634iwex8q.fsf@gnu.org> <86wmg7bso1.fsf@gnu.org> <87cyhzmzbp.fsf@telefonica.net> <87bjximwnj.fsf@protonmail.com> <87msh2l81l.fsf@protonmail.com> <12e84107-4f21-4ee0-9963-6f04bcc8f6ac@online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21759"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Marcus Harnisch , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 11 23:12:55 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 1tLUwx-0005VW-EB for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Dec 2024 23:12:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLUw8-0002jw-Lh; Wed, 11 Dec 2024 17:12:04 -0500 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 1tLUw6-0002jA-Js for emacs-devel@gnu.org; Wed, 11 Dec 2024 17:12:02 -0500 Original-Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLUw2-0001xo-MF for emacs-devel@gnu.org; Wed, 11 Dec 2024 17:12:02 -0500 Original-Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id 8D8A11381219; Wed, 11 Dec 2024 17:11:57 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Wed, 11 Dec 2024 17:11:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1733955117; x=1734041517; bh=M+fM4vwRlePK8QknxzPHHWyacJiD0dPYHyvBbfxpIEU=; b= OVvBizn7wCs4S2GTFBTGhSFongsf4MXqgriN639VKYw33Ci8BrcdPcL63mJhRY+o exltEVAS7TeJZguPZEnLuLr24ZJ+Ri4pRtT7VxSCerFils4ngcKKcmKb0wzyQU91 Iy02UEUGAMnf0CK1nthaVFJUFjoZfFr7nOLbLYXa+D8FptNbi8zVDzFiDs3rJfxI mTah49Alti3k2UeWabNmWs9ms+KLRINjzTrUlkoo48fS+/Mx9LNvRXWdu7/3VtzN JADuA9wXxThY5T5TO1qy1ehHgPRe7+UcTcu6eeGTViPQNhu3VQne29gMKV509+NX Ukhl9ziHVoCxonTS/i/jSQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1733955117; x=1734041517; bh=M +fM4vwRlePK8QknxzPHHWyacJiD0dPYHyvBbfxpIEU=; b=KXV8aoly2SYKhmyqB fpepLlnYt9sNJvb7EqChJYF/v7Q/Oy+KgtieOT18agq+97to03A9PEuqJd62BLf9 MtTbvdmkVps54I6J4Da2LftGgQBFQ7D2WymahfHN8d5TBbihry3/SEtupJ6hrM3K dSaV5/Jbh01soPUnV2wIuJub+JOg6gHzDT4HhYL/+t97Y6P0c/sp5K9oIkoZT8Ms wovwGa+I79+Q1zbjcyNhMu0jXIw1epOIhbQ5l+FT2FRsiZo7n5HVUt4qX21o3eLz asPhqIwUqM0SnMcO+U6yCTCZbkwinoFQOKvY+kSTHWYTi/RSrLzKh/RJrRu11APo r+cIw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkedtgdduheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfg fuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcu oegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrthhtvghrnhepheegleeife eiieekgeefledvgedvveejgfefleelheejudfhleeivdeuueffudegnecuffhomhgrihhn pehnuhhllhhprhhoghhrrghmrdgtohhmpdgtohhrvgguuhhmphgvugdruggvvhenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhies ghhuthhovhdruggvvhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepmhhhqdhgmhgrnhgvsehonhhlihhnvgdruggvpdhrtghpthhtohepvghm rggtshdquggvvhgvlhesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 11 Dec 2024 17:11:56 -0500 (EST) Content-Language: en-US In-Reply-To: <12e84107-4f21-4ee0-9963-6f04bcc8f6ac@online.de> Received-SPF: pass client-ip=103.168.172.146; envelope-from=dmitry@gutov.dev; helo=fout-a3-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326385 Archived-At: On 11/12/2024 17:06, Marcus Harnisch wrote: > On 11/12/2024 14.27, Gerd Möllmann wrote: >> Pip Cet writes: >> >>> It was nullprogram.com, at https://nullprogram.com/blog/2017/09/07/. The >>> title is "Gap Buffers Are Not Optimized for Multiple Cursors", which >>> seems accurate to me. >> >> Thanks! Added to my collection. > > You may be interested in this article, too, which refererences the blog > post above: > https://coredumped.dev/2023/08/09/text-showdown-gap-buffers-vs-ropes/ To quote from the bottom of the article: The way I see it, gap buffers are better for searching and memory usage, but ropes are better at non-local editing patterns. Despite their simplicity, gap buffers can hold their own in the modern world. Maybe Emacs was on to something. This is also my takeaway from reading a number of other texts on the subject (not benchmarking personally, though, TBF).