GNU bug report logs - #69630
breadcrumb-mode and json-ts-mode (possibly yaml-ts-mode, others) performance

Previous Next

Package: emacs;

Reported by: Johann Höchtl <johann.hoechtl <at> gmail.com>

Date: Fri, 8 Mar 2024 08:57:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 69630 in the body.
You can then email your comments to 69630 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#69630; Package emacs. (Fri, 08 Mar 2024 08:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Johann Höchtl <johann.hoechtl <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 08 Mar 2024 08:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Johann Höchtl <johann.hoechtl <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: breadcrumb-mode and json-ts-mode (possibly yaml-ts-mode,
 others) performance
Date: Fri, 8 Mar 2024 09:54:54 +0100
[Message part 1 (text/plain, inline)]
When opening a json file using it's -ts-mode, bread-crumb-mode causes a big
performance impact. This performance impact seems to be more than linear i
nrealtion to file size,  doubling in size causes more than doubling the
time until emacs becomes responsible again, likely because it contains more
than double the number of nodes to parse.

Many other popular editors contain a breadcrumb-feature and having that
feature for json, yaml, xml, ... files seems "natural".
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69630; Package emacs. (Sat, 09 Mar 2024 07:25:01 GMT) Full text and rfc822 format available.

Message #8 received at 69630 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Johann Höchtl <johann.hoechtl <at> gmail.com>
Cc: 69630 <at> debbugs.gnu.org
Subject: Re: bug#69630: breadcrumb-mode and json-ts-mode (possibly
 yaml-ts-mode, others) performance
Date: Sat, 09 Mar 2024 09:24:09 +0200
> From: Johann Höchtl <johann.hoechtl <at> gmail.com>
> Date: Fri, 8 Mar 2024 09:54:54 +0100
> 
> When opening a json file using it's -ts-mode, bread-crumb-mode causes a big performance impact. This
> performance impact seems to be more than linear i nrealtion to file size,  doubling in size causes more than
> doubling the time until emacs becomes responsible again, likely because it contains more than double the
> number of nodes to parse.
> 
> Many other popular editors contain a breadcrumb-feature and having that feature for json, yaml, xml, ... files
> seems "natural".

Isn't that a bug (or mis-feature) in breadcrumb-mode that you should
report to the developers of breadcrumb-mode?

IOW, why did you think the right place to report this is here?  Any
evidence that something in Emacs core is causing the performance
issue?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69630; Package emacs. (Sat, 09 Mar 2024 18:13:01 GMT) Full text and rfc822 format available.

Message #11 received at 69630 <at> debbugs.gnu.org (full text, mbox):

From: Johann Höchtl <johann.hoechtl <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 69630 <at> debbugs.gnu.org
Subject: Re: bug#69630: breadcrumb-mode and json-ts-mode (possibly
 yaml-ts-mode, others) performance
Date: Sat, 9 Mar 2024 19:11:07 +0100
Oh sorry, I erroneously assumed breadcrumb-mode was an Emacs core 
feature, I will report it against the authors Github repo.

Best, Johann

On 09.03.24 08:24, Eli Zaretskii wrote:
>> From: Johann Höchtl <johann.hoechtl <at> gmail.com>
>> Date: Fri, 8 Mar 2024 09:54:54 +0100
>>
>> When opening a json file using it's -ts-mode, bread-crumb-mode causes a big performance impact. This
>> performance impact seems to be more than linear i nrealtion to file size,  doubling in size causes more than
>> doubling the time until emacs becomes responsible again, likely because it contains more than double the
>> number of nodes to parse.
>>
>> Many other popular editors contain a breadcrumb-feature and having that feature for json, yaml, xml, ... files
>> seems "natural".
> Isn't that a bug (or mis-feature) in breadcrumb-mode that you should
> report to the developers of breadcrumb-mode?
>
> IOW, why did you think the right place to report this is here?  Any
> evidence that something in Emacs core is causing the performance
> issue?
>
> Thanks.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 09 Mar 2024 18:39:02 GMT) Full text and rfc822 format available.

Notification sent to Johann Höchtl <johann.hoechtl <at> gmail.com>:
bug acknowledged by developer. (Sat, 09 Mar 2024 18:39:02 GMT) Full text and rfc822 format available.

Message #16 received at 69630-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Johann Höchtl <johann.hoechtl <at> gmail.com>
Cc: 69630-done <at> debbugs.gnu.org
Subject: Re: bug#69630: breadcrumb-mode and json-ts-mode (possibly
 yaml-ts-mode, others) performance
Date: Sat, 09 Mar 2024 20:38:14 +0200
> Date: Sat, 9 Mar 2024 19:11:07 +0100
> Cc: 69630 <at> debbugs.gnu.org
> From: Johann Höchtl <johann.hoechtl <at> gmail.com>
> 
> Oh sorry, I erroneously assumed breadcrumb-mode was an Emacs core 
> feature, I will report it against the authors Github repo.

OK, so I'm closing this bug.  If it turns out it's a core problem, we
can reopen it.

Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 07 Apr 2024 11:24:24 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 77 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.