[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43016: replace-region-contents takes a lot of time when called from
From: |
ljell |
Subject: |
bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer |
Date: |
Mon, 24 Aug 2020 12:29:49 +0000 |
>
> If you run M-x json-pretty-print-buffer on the already pretty file then it's
> much faster,so maybe it's related to the single long line generated by
> json-encode.
The json-encode part was missing in my first post, so the relevant code looks
like this:
...
(with-temp-buffer
(insert (json-encode data))
(json-pretty-print-buffer)
(write-file "data.json"))
...
So I insert json encoded lisp data into a temp buffer and then run prettyfing
on it, so the json file is more readable and there are no long lines. This code
took a few seconds on 26 and it takes much longer with 27.
- bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer, (continued)
- bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer, Eli Zaretskii, 2020/08/24
- bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer, Tassilo Horn, 2020/08/24
- bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer, Eli Zaretskii, 2020/08/24
- bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer, Paul Eggert, 2020/08/24
- bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer, Eli Zaretskii, 2020/08/25
- bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer, Paul Eggert, 2020/08/25
- bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer, Tassilo Horn, 2020/08/25
- bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer, Paul Eggert, 2020/08/25
- bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer,
ljell <=