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.bugs Subject: bug#71367: 30.0.50; ELPA package breadcrumb causes Emacs freeze when editing json file Date: Thu, 06 Jun 2024 16:37:26 +0300 Message-ID: <86frtqgpk9.fsf@gnu.org> References: <87tti8binx.fsf@fastmail.fm> <874ja7ua1m.fsf@gnu.org> <867cf2ifbp.fsf@gnu.org> <86sexqgvax.fsf@gnu.org> <86jzj2gtow.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="29985"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71367@debbugs.gnu.org, acorallo@gnu.org, theo@thornhill.no, tsdh@gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 06 15:37:59 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1sFDJX-0007Y7-35 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 15:37:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFDJO-0004V2-O6; Thu, 06 Jun 2024 09:37:50 -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 1sFDJN-0004Us-BL for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 09:37:49 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFDJL-0006Jr-S8 for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 09:37:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFDJa-000754-Dh for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 09:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jun 2024 13:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71367 X-GNU-PR-Package: emacs Original-Received: via spool by 71367-submit@debbugs.gnu.org id=B71367.171768107127202 (code B ref 71367); Thu, 06 Jun 2024 13:38:02 +0000 Original-Received: (at 71367) by debbugs.gnu.org; 6 Jun 2024 13:37:51 +0000 Original-Received: from localhost ([127.0.0.1]:52721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFDJO-00074f-PC for submit@debbugs.gnu.org; Thu, 06 Jun 2024 09:37:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFDJM-00074V-Qy for 71367@debbugs.gnu.org; Thu, 06 Jun 2024 09:37:49 -0400 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 1sFDJ2-0006A1-CO; Thu, 06 Jun 2024 09:37:28 -0400 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=Ese0h7drA2p6s39QxZjd5pN4TqwIanSSm9B8iN7yrlg=; b=P4VCBRM7NWk59/9pavil tEBToxnwdjWX8QrxNnOb/WL7Y1dxt9dhPeRBBPnghBqhsHSCsSBeE3JBUO1ewhc0CDA0zNpsXU6ay E8bXmxn2uvCRLn7bK8X/yM+DE8EPXo1quWxcnvs/iX/1Hql36S7kCpC8ZQh1x3U5Wcmtrx87DnFQZ vDdX6VgJrKShu7b4AkvPb3BpaJSLL2AaVrIYHtdhy1PPWUjjLOmyBfeGb9JlKl1PHiqpODfs/aUnF gGBjDfoYBGS6PnPQCOM5NfNFkMpmBh/4nX5oFczn6R8t5PyxD1cJVhLcqlszr3o7JtVahZFZJMBoB rOyrN1yZlHOdqw==; In-Reply-To: (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Thu, 6 Jun 2024 14:00:20 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286699 Archived-At: > From: João Távora > Date: Thu, 6 Jun 2024 14:00:20 +0100 > Cc: acorallo@gnu.org, tsdh@gnu.org, 71367@debbugs.gnu.org, theo@thornhill.no > > On Thu, Jun 6, 2024 at 1:08 PM Eli Zaretskii wrote: > > > I don't see why using make-vector and vconcat, two existing > > primitives, would qualify as implementing something more general than > > what is needed here. > > If someone uses those two primitives in the context of that > particular algorithm, they'll likely to keep track of the capacity of > the vector saying how many things fit and the size counting how many > things are already there. You'll increment size when adding things > pushing and enlarge/reallocate when size = capacity. By then you'll > have "open coded" VECTOR-PUSH-EXTEND or C++'s std::vector::push_back > or whatever your preferred language calls it. I understand all that. My point is that, given how little we use vectors in our Lisp code, having to implement that in one or two places is not a big deal, and doesn't necessarily mean we need a general-purpose primitive.