From: fgallina@gnu.org (Fabián Ezequiel Gallina)
To: Eli Zaretskii <eliz@gnu.org>
Cc: 16875@debbugs.gnu.org
Subject: bug#16875: python, comint-mode: Large output makes Emacs freeze
Date: Mon, 28 Jul 2014 18:35:09 -0300 [thread overview]
Message-ID: <878und2mlu.fsf@gnu.org> (raw)
In-Reply-To: <837g2zih33.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Jul 2014 07:03:12 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: fgallina@gnu.org (Fabián Ezequiel Gallina)
>> Date: Sat, 26 Jul 2014 23:22:41 -0300
>>
>>
>> Emacs is still slow, but at least responds to commands. I feel that
>> everything that could be optimized on the comint side is pretty much
>> there and that the slowness being experienced is in fact related to the
>> long-lines slowness bug mentioned before[0].
>
> That bug is about displaying long lines. Is the code that is slow
> involved in displaying such lines? If there's no display involved,
> then the discussion you point to is not relevant.
>
> Also, please tell how long are your lines, on the average.
>
Yes, such code outputs a long line consisting of 841601 chars.
One way to get that output in a file for testing is executing the
following shell command:
python -c 'print ([[[False] * 200 for i in range(3)] for j in range(200)])' > /tmp/out.log
Even opening that file in fundamental-mode makes Emacs slow. For
instance calling `previous-line' from the end of buffer several times
takes 1.1 seconds on average to complete.
previous-line 30 33.263101639 1.1087700546
Next line is a bit more responsive though:
next-line 30 14.028573178 0.4676191059
Operations seem to take longer and longer as point moves away from the
beginning of buffer.
Cheers,
Fabián
next prev parent reply other threads:[~2014-07-28 21:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-25 9:21 bug#16875: python, comint-mode: Large output makes Emacs freeze Andreas Röhler
2014-06-25 1:19 ` Fabián Ezequiel Gallina
2014-06-25 5:27 ` Andreas Röhler
2014-06-25 14:26 ` Stefan Monnier
2014-06-25 15:28 ` Andreas Röhler
2014-07-20 22:27 ` Fabián Ezequiel Gallina
2014-07-23 6:20 ` Andreas Röhler
2014-07-27 2:22 ` Fabián Ezequiel Gallina
2014-07-27 4:03 ` Eli Zaretskii
2014-07-28 21:35 ` Fabián Ezequiel Gallina [this message]
2014-07-29 7:32 ` Eli Zaretskii
2014-07-27 10:20 ` Stefan Monnier
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=878und2mlu.fsf@gnu.org \
--to=fgallina@gnu.org \
--cc=16875@debbugs.gnu.org \
--cc=eliz@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.