From: ljell via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "43016@debbugs.gnu.org" <43016@debbugs.gnu.org>,
Tassilo Horn <tsdh@gnu.org>
Subject: bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer
Date: Mon, 24 Aug 2020 12:13:15 +0000 [thread overview]
Message-ID: <g0fj8DSywCYTI9O75o22EM_zKPrP65v-r1KqPhpunAix_v4TiLffKZXcRQSUvuKkjDZoVf5Mvi-iBSAqrNz2wkrp0Yd74iE2mbhyAxa4o1Y=@protonmail.com> (raw)
In-Reply-To: <83blj072j0.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 525 bytes --]
>
> Thank you for your report and the data. Is it possible to have the
> file with which you've seen this problem?
>
Looks like the problem occurs only with accented characters present, so I created a json file with them. Attached.
Warning: Long lines!
After opening the file, just run M-x json-pretty-print-buffer on it to see how long it takes.
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.
[-- Attachment #2: test.rar --]
[-- Type: application/octet-stream, Size: 516805 bytes --]
next prev parent reply other threads:[~2020-08-24 12:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-24 8:25 bug#43016: replace-region-contents takes a lot of time when called from json-pretty-print-buffer ljell via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-08-24 10:37 ` Eli Zaretskii
2020-08-24 12:13 ` ljell via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2020-08-24 12:29 ` ljell via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-08-24 17:14 ` Tassilo Horn
2020-08-24 17:21 ` Lars Ingebrigtsen
2020-08-24 17:25 ` Philipp Stephani
2020-08-24 17:27 ` Eli Zaretskii
2020-08-24 19:15 ` Tassilo Horn
2020-08-24 19:36 ` Eli Zaretskii
2020-08-24 23:35 ` Paul Eggert
2020-08-25 6:10 ` Eli Zaretskii
2020-08-25 18:26 ` Paul Eggert
2020-08-25 17:30 ` Tassilo Horn
2020-08-25 18:19 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='g0fj8DSywCYTI9O75o22EM_zKPrP65v-r1KqPhpunAix_v4TiLffKZXcRQSUvuKkjDZoVf5Mvi-iBSAqrNz2wkrp0Yd74iE2mbhyAxa4o1Y=@protonmail.com' \
--to=bug-gnu-emacs@gnu.org \
--cc=43016@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=laszlomail@protonmail.com \
--cc=tsdh@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.