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 14:33:26 +0300 Message-ID: <86sexqgvax.fsf@gnu.org> References: <87tti8binx.fsf@fastmail.fm> <874ja7ua1m.fsf@gnu.org> <867cf2ifbp.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="13579"; 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 13:34:10 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 1sFBNh-0003Hj-Id for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 13:34:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFBNO-00052F-4m; Thu, 06 Jun 2024 07:33: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 1sFBNM-000523-Br for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 07:33:48 -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 1sFBNM-00063n-3I for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 07:33:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFBNa-0006ij-GE for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 07:34: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 11:34: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.171767363425820 (code B ref 71367); Thu, 06 Jun 2024 11:34:02 +0000 Original-Received: (at 71367) by debbugs.gnu.org; 6 Jun 2024 11:33:54 +0000 Original-Received: from localhost ([127.0.0.1]:52575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFBNS-0006iN-F9 for submit@debbugs.gnu.org; Thu, 06 Jun 2024 07:33:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFBNN-0006i8-S6 for 71367@debbugs.gnu.org; Thu, 06 Jun 2024 07:33:53 -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 1sFBN3-00062Z-Hj; Thu, 06 Jun 2024 07:33:29 -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=mt+boFY2+RIGNkQAFQ0ddN8LyTSc3aXvpjlwG5pS6Jk=; b=AYf91IBtIFmdF2t0elwg iyailmBIA27V/F8wxyVHn1nr8z/1Fst/BFib0J3CJAW+gD+PacW16JiZtNVGJvB6LI37+dFZrBESw 7qh13aWLDv0D6F0qkxI1+BkSm4M+DNW2v43fAODx40s8TaC9vjBbI8Pj0syFPlzG44VuqWv8lZvQ3 b/av/dyX4oktOLENfZF6rzG6rNxp54f6ntz47BBqM6HH12sy+fnl+uflm9LEWCzP68W05595ExFc+ xrSvRMtEtWhO4WbHi9D5colOSg9l+Y8XxxUAQJqzR6tbjPVw2rTxbeOZnKK3L7UBVfoNFdz9qIopJ jvRncq5uWvhgkw==; In-Reply-To: (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Thu, 6 Jun 2024 11:07:54 +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:286683 Archived-At: > From: João Távora > Date: Thu, 6 Jun 2024 11:07:54 +0100 > Cc: Andrea Corallo , tsdh@gnu.org, 71367@debbugs.gnu.org, > theo@thornhill.no > > > Maybe João could suggest some trick or user option to cut down that > > initial time to reasonable level. > > No, but feel free to profile and suggest Elisp changes or algorithmic > changes. Maybe the vconcat re-allocations in breadcrumb--ipath-plain > re-allocations are to blame? It's O(N^2) allocations I think. Could be. > What's the length of bc--ipath-plain? 17500ish? If so, then the > thing would be to reserve some space in the vector upfront, but I > don't know how to do that easily in Elisp (in CL there's VECTOR-PUSH > and VECTOR-PUSH-EXTEND). I'd say allocate some initial space with make-vector, and then enlarge using vconcat or something?