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: Gap buffer problem? Date: Wed, 11 Dec 2024 19:06:04 +0200 Message-ID: <86msh22lqb.fsf@gnu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38527"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, ofv@wanadoo.es, pipcet@protonmail.com To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 11 18:07:02 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 1tLQAv-0009p2-4J for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Dec 2024 18:07:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLQAA-0008HU-UB; Wed, 11 Dec 2024 12:06:14 -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 1tLQA6-0008H5-Ed for emacs-devel@gnu.org; Wed, 11 Dec 2024 12:06:11 -0500 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 1tLQA5-0007X6-Jk; Wed, 11 Dec 2024 12:06:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=X3ZcuAhORicFqbaTvRmhZn0ZIOn10fuGpdIOrXu0x7w=; b=C4OnbIiVWri5w/e4jsHl dSWgFVDPbjWFCq9NzSh5kDqDUuKT41ILCI5vfjhPwIQPBFZT5MrbrgzksZonYnyIwoojrKx1Pxd0N 9XLB9b8g1j2JtNt+MdqVl9b1V6hICSq5Lpc7QKFYmGwE9TClsTa59Dd98m51KPNPPAcwOKTQtI1am fYZgv+y7OUL9JEtY8LHM1rqEwyY0IM3mO0JLswNmFkXcf+Z4wFcd/UZLeeai8XbtLJeQyq0BocywM dz6ull9RkhpH9W7srYJ94LUBKCU6VFIkCsClgxUN+UYrx3XXlJs58CcwrWzJsx5dwDuTwXCOZb+a4 we0L+Kj++bSL5w==; In-Reply-To: (message from Gerd =?utf-8?Q?M?= =?utf-8?Q?=C3=B6llmann?= on Wed, 11 Dec 2024 16:51:56 +0100) 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:326368 Archived-At: > From: Gerd Möllmann > Cc: emacs-devel@gnu.org, ofv@wanadoo.es, pipcet@protonmail.com > Date: Wed, 11 Dec 2024 16:51:56 +0100 > > Eli Zaretskii writes: > > > 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. > > 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.