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: Gap buffer problem? Date: Wed, 11 Dec 2024 18:15:16 +0100 Message-ID: References: <86a5d6f7bn.fsf@gnu.org> <871pyijctd.fsf@protonmail.com> <8634iyf257.fsf@gnu.org> <8634iwex8q.fsf@gnu.org> <86wmg7bso1.fsf@gnu.org> <87cyhzmzbp.fsf@telefonica.net> <867c8647v8.fsf@gnu.org> <86msh22lqb.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="31902"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org, ofv@wanadoo.es, pipcet@protonmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 11 18:15:48 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 1tLQJQ-00089X-GB for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Dec 2024 18:15:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLQJA-0002as-8j; Wed, 11 Dec 2024 12:15:32 -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 1tLQJ0-0002XN-Lv for emacs-devel@gnu.org; Wed, 11 Dec 2024 12:15:26 -0500 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLQIy-0008VE-GO; Wed, 11 Dec 2024 12:15:22 -0500 Original-Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3863703258fso557711f8f.1; Wed, 11 Dec 2024 09:15:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733937318; x=1734542118; 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=XGSVYf4n+8V/kklG3wUed5AE0QJmTqPofSL0kvNcD0s=; b=ex/XpOeJJlVZxmDZz4PFZ85RINehyU34bA/Wa0VcFHa89bJL+tzkJOOiQ90VWg/O9f zbFPyQjUSVr1+h3i6UYmRa0EGUatpTRLWg0wLIJCDmLxpCIVjIAfThSH9RZr0pSgEJj6 +bVjH2//Pebh2mejhXs95Bv8cyNKWjK7ff/LomHulRX5oGfiRf4wprG+xYr6M94ODB7w 1EbZpAzYI2ffdBQ3qDuC3riAQgv7z46KOZN15MaMHCU2nHE7JIj/zFhCHhfEM+pHXCd1 jV5QCgMG9jo5AoBja0XNik9BPxnDyjIqhE4uS5hKxDvKptbsuKQy/CfiFDvNapy91JmU eywA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733937318; x=1734542118; 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=XGSVYf4n+8V/kklG3wUed5AE0QJmTqPofSL0kvNcD0s=; b=PPvv31m70XsOSAeVsnHG1fnPC4MRpPv9/73AA9mvTAwvqIUw72C3shNAr3zV0TGrct 4C7+1EunfGtC5D80ofRCVAXPypQvbVEvolM3/idH5OQSVeMJb/nv97DgkTxGatFk3mXi YVEBV7lLI3ffGXWgloE5ucFJn81sT8shHgSPWKJj/hsBiC7HGRd28p0IqfyhZgm6huCq a6dM/+/IomIbIxwxY3msjKUf59sD8ysA/ezniimiqGfmrvSZfc9YssVGhwbgRv+ivdjf 2RgCS86KfjMLZPFn9gquiBkbRW0+/Ux9muesN+0Wf12TMa5PUD3cgTXPoTh4dHM+XlAS EZpA== X-Gm-Message-State: AOJu0YzKY78o3w98iPr893hPQtkpEovqmvtAQfLb7OcftvFBZKPz0dTh GzMmad+xfnW73jkOIfEqjXB7ll+DFY1vV4ttYw+vgqNIIO17aI/O X-Gm-Gg: ASbGnct0bw1vKOAg6PH7luMFBRmtpTHTUEZK6uZt0hxJPd5bGNFlIoZbpjYEQ4CjL1x iBhaXHB/XE5gjUqW27bXK1mq1Pq7e5HvYRTpM/gbj10IcZUw7kD4VffhB+LOmpkMDjr2UuzmXgE bXWHya8kUH7VTH1LBGDGUQnyVtrUU8IRSzyL++0rHfrEl4Ld4rfxmE5TYKpzzwAR1o5V8zpaMwv esboddLe5gxhPQwSibRJEQ2PAIZIwqp73H4LWBD8rnjQkU2gnw6gU67yQNxIIYlXrAYyTuTj2AB tY3ftssOAXs7Dy/ZUtoSzati0PzdqjkdGVzxGwdOPUtt/qgdVk2W1l34UWYc7hA= X-Google-Smtp-Source: AGHT+IH2KgZ22Xte/2NPQkcAWkZZqfZyc3rgH6mtkAfvPjsaZbxsYuiVDrJC98kW1rIzRnMcYO7GJQ== X-Received: by 2002:a5d:47c6:0:b0:386:37bb:ddf8 with SMTP id ffacd0b85a97d-387887b8642mr72767f8f.6.1733937318250; Wed, 11 Dec 2024 09:15:18 -0800 (PST) Original-Received: from pro2 (p200300e0b709ba00c5d5596d9959c8a7.dip0.t-ipconnect.de. [2003:e0:b709:ba00:c5d5:596d:9959:c8a7]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434d52c0c9esm265715665e9.31.2024.12.11.09.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 09:15:17 -0800 (PST) In-Reply-To: <86msh22lqb.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 11 Dec 2024 19:06:04 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=gerd.moellmann@gmail.com; helo=mail-wr1-x435.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:326371 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: emacs-devel@gnu.org, ofv@wanadoo.es, pipcet@protonmail.com >> Date: Wed, 11 Dec 2024 16:51:56 +0100 >>=20 >> Eli Zaretskii writes: >>=20 >> > Unless you have a huge (and I mean a HUGE) buffer, and some Lisp that >> > moves point, then inserts a small number of characters, then moves >> > point far away and again inserts a small number of characters, etc., >> > I'd be very surprised if the gap buffer caused significant performance >> > problems on a modern CPU. >> > >> > Can you profile that case and post the expanded profile? I'm always >> > happy to be wrong about performance bottlenecks, and profiles are good >> > at proving me wrong. >>=20 >> Maybe I'll try to investigate that further at some point. Such things >> always tend to be so time consuming... > > I meant profiling with "M-x profile-start", then run your slow-down > recipe. That should be easy and should not consume any significant > time. Analyzing the profile could, but producing it shouldn't. Plus making it reproducible, if it is.