* bug#58979: treesitter-regression with json-mode
@ 2022-11-02 16:16 Johann Höchtl
2022-11-02 16:48 ` bug#58981: " Johann Höchtl
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Johann Höchtl @ 2022-11-02 16:16 UTC (permalink / raw)
To: 58979
[-- Attachment #1: Type: text/plain, Size: 662 bytes --]
When I open a large json file (about 3_000_000 lines, about 72Mb,
pretty-printed) Emacs 29.0.50 opens the file just fine in `js-json-mode`
and when using regexp-based font locking, it works well.
When I force this buffer into javascript-mode, Emacs hangs. Memory
consumption as reported by Windows task manager "dances" around 2Gb, yet
even after waiting for three minutes, Emacs doesn't get responsive any more.
I consider this an unfortunately regression as recent commits to Emacs 29
(long lines patches) actually makes working with such large files with long
lines absolutely pleasant, yet as it seems the interaction with tree-sitter
destroys this gains.
[-- Attachment #2: Type: text/html, Size: 750 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#58981: treesitter-regression with json-mode
2022-11-02 16:16 bug#58979: treesitter-regression with json-mode Johann Höchtl
@ 2022-11-02 16:48 ` Johann Höchtl
2022-11-03 10:50 ` Robert Pluim
2022-11-12 20:34 ` bug#58979: " Stefan Kangas
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Johann Höchtl @ 2022-11-02 16:48 UTC (permalink / raw)
To: 58981
[-- Attachment #1: Type: text/plain, Size: 863 bytes --]
Sorry, disregard, behavior is caused by plugin highlight-indent-guides
Am Mi., 2. Nov. 2022 um 17:16 Uhr schrieb Johann Höchtl <
johann.hoechtl@gmail.com>:
> When I open a large json file (about 3_000_000 lines, about 72Mb,
> pretty-printed) Emacs 29.0.50 opens the file just fine in `js-json-mode`
> and when using regexp-based font locking, it works well.
>
> When I force this buffer into javascript-mode, Emacs hangs. Memory
> consumption as reported by Windows task manager "dances" around 2Gb, yet
> even after waiting for three minutes, Emacs doesn't get responsive any more.
>
> I consider this an unfortunately regression as recent commits to Emacs 29
> (long lines patches) actually makes working with such large files with long
> lines absolutely pleasant, yet as it seems the interaction with tree-sitter
> destroys this gains.
>
[-- Attachment #2: Type: text/html, Size: 1194 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#58981: treesitter-regression with json-mode
2022-11-02 16:48 ` bug#58981: " Johann Höchtl
@ 2022-11-03 10:50 ` Robert Pluim
0 siblings, 0 replies; 6+ messages in thread
From: Robert Pluim @ 2022-11-03 10:50 UTC (permalink / raw)
To: Johann Höchtl; +Cc: 58981
tags 58981 notabug
close 58981 29.1
quit
>>>>> On Wed, 2 Nov 2022 17:48:24 +0100, Johann Höchtl <johann.hoechtl@gmail.com> said:
Johann> Sorry, disregard, behavior is caused by plugin highlight-indent-guides
Closing, thanks.
Robert
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#58979: treesitter-regression with json-mode
2022-11-02 16:16 bug#58979: treesitter-regression with json-mode Johann Höchtl
2022-11-02 16:48 ` bug#58981: " Johann Höchtl
@ 2022-11-12 20:34 ` Stefan Kangas
2022-11-22 7:44 ` Yuan Fu
2023-01-07 23:10 ` Yuan Fu
3 siblings, 0 replies; 6+ messages in thread
From: Stefan Kangas @ 2022-11-12 20:34 UTC (permalink / raw)
To: Johann Höchtl; +Cc: Yuan Fu, 58979
Johann Höchtl <johann.hoechtl@gmail.com> writes:
> When I open a large json file (about 3_000_000 lines, about 72Mb,
> pretty-printed) Emacs 29.0.50 opens the file just fine in
> `js-json-mode` and when using regexp-based font locking, it works
> well.
>
> When I force this buffer into javascript-mode, Emacs hangs. Memory
> consumption as reported by Windows task manager "dances" around 2Gb,
> yet even after waiting for three minutes, Emacs doesn't get responsive
> any more.
>
> I consider this an unfortunately regression as recent commits to Emacs
> 29 (long lines patches) actually makes working with such large files
> with long lines absolutely pleasant, yet as it seems the interaction
> with tree-sitter destroys this gains.
Copying in Yuan Fu.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#58979: treesitter-regression with json-mode
2022-11-02 16:16 bug#58979: treesitter-regression with json-mode Johann Höchtl
2022-11-02 16:48 ` bug#58981: " Johann Höchtl
2022-11-12 20:34 ` bug#58979: " Stefan Kangas
@ 2022-11-22 7:44 ` Yuan Fu
2023-01-07 23:10 ` Yuan Fu
3 siblings, 0 replies; 6+ messages in thread
From: Yuan Fu @ 2022-11-22 7:44 UTC (permalink / raw)
To: Stefan Kangas; +Cc: johann.hoechtl, 58979
Stefan Kangas <stefankangas@gmail.com> writes:
> Johann Höchtl <johann.hoechtl@gmail.com> writes:
>
>> When I open a large json file (about 3_000_000 lines, about 72Mb,
>> pretty-printed) Emacs 29.0.50 opens the file just fine in
>> `js-json-mode` and when using regexp-based font locking, it works
>> well.
>>
>> When I force this buffer into javascript-mode, Emacs hangs. Memory
>> consumption as reported by Windows task manager "dances" around 2Gb,
>> yet even after waiting for three minutes, Emacs doesn't get responsive
>> any more.
>>
>> I consider this an unfortunately regression as recent commits to Emacs
>> 29 (long lines patches) actually makes working with such large files
>> with long lines absolutely pleasant, yet as it seems the interaction
>> with tree-sitter destroys this gains.
>
> Copying in Yuan Fu.
Again, sorry for the delay, I just saw this report :-)
Since your previous report is actually about emacs-tree-sitter, I think
this one is too?
Anyway, since tree-sitter is merged into master now, if you rebuild
master and turn on json-ts-mode, you should be in tree-sitter backed
JSON mode. I’d give that a try and see if works fine.
Thanks,
Yuan
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#58979: treesitter-regression with json-mode
2022-11-02 16:16 bug#58979: treesitter-regression with json-mode Johann Höchtl
` (2 preceding siblings ...)
2022-11-22 7:44 ` Yuan Fu
@ 2023-01-07 23:10 ` Yuan Fu
3 siblings, 0 replies; 6+ messages in thread
From: Yuan Fu @ 2023-01-07 23:10 UTC (permalink / raw)
To: 58979-done
Yuan Fu <casouri@gmail.com> writes:
> Stefan Kangas <stefankangas@gmail.com> writes:
>
>> Johann Höchtl <johann.hoechtl@gmail.com> writes:
>>
>>> When I open a large json file (about 3_000_000 lines, about 72Mb,
>>> pretty-printed) Emacs 29.0.50 opens the file just fine in
>>> `js-json-mode` and when using regexp-based font locking, it works
>>> well.
>>>
>>> When I force this buffer into javascript-mode, Emacs hangs. Memory
>>> consumption as reported by Windows task manager "dances" around 2Gb,
>>> yet even after waiting for three minutes, Emacs doesn't get responsive
>>> any more.
>>>
>>> I consider this an unfortunately regression as recent commits to Emacs
>>> 29 (long lines patches) actually makes working with such large files
>>> with long lines absolutely pleasant, yet as it seems the interaction
>>> with tree-sitter destroys this gains.
>>
>> Copying in Yuan Fu.
>
> Again, sorry for the delay, I just saw this report :-)
>
> Since your previous report is actually about emacs-tree-sitter, I think
> this one is too?
>
> Anyway, since tree-sitter is merged into master now, if you rebuild
> master and turn on json-ts-mode, you should be in tree-sitter backed
> JSON mode. I’d give that a try and see if works fine.
>
> Thanks,
> Yuan
Closing this report since I think there’s nothing to do. Feel free to
reopen.
Yuan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-01-07 23:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-02 16:16 bug#58979: treesitter-regression with json-mode Johann Höchtl
2022-11-02 16:48 ` bug#58981: " Johann Höchtl
2022-11-03 10:50 ` Robert Pluim
2022-11-12 20:34 ` bug#58979: " Stefan Kangas
2022-11-22 7:44 ` Yuan Fu
2023-01-07 23:10 ` Yuan Fu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.