[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs really slow when inserting a new source code block
From: |
Ihor Radchenko |
Subject: |
Re: emacs really slow when inserting a new source code block |
Date: |
Mon, 26 Sep 2022 23:17:11 +0800 |
Luca Ferrari <fluca1978@gmail.com> writes:
> On Mon, Sep 26, 2022 at 6:41 AM Ihor Radchenko <yantar92@gmail.com> wrote:
>> Thanks for reporting!
>> May you
>> 1. M-x profiler-start <RET> cpu <RET>
>> 2. Move/paste/edit your source block
>> 3. M-x profiler-report <RET>
>> 4. M-x profiler-report-write-profile and share the resulting file here
>
> Apparently I'm not able to get the profiler report written.
> However, I discovered that, for instance, when I'm editing a piece of
> code with regexp Emacs seems to suffer, at least it is the only
> chances I had today to get it slower.
> The messages buffer does not help very much:
>
> CPU and memory profiler started
> End of ‘m/ ... /’ string/RE not found: (scan-error Unbalanced parentheses 74
> 82)
> Auto-saving...done
> CPU and memory profiler stopped
> profiler-write-profile: Wrong type argument: arrayp, nil
I think you tried to use M-x profiler-stop instead of M-x profiler-report
M-x profiler-report show yield a new buffer displayed the profiler tree.
M-x profiler-write-profile will work from inside that buffer.
You can refer to https://cubeatic.com/index.php/s/iQakFWXgxsJzyXP
(around 22:00) for a more detailed showcase.
> Oh, I also tried to disable flyspell, but it seems to me it gets
> re-enabled for the source code block I'm within (but it's just a
> feeling).
>
> Any idea?
Another thing you can try is setting org-src-fontify-natively to nil in
your config.
--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
- emacs really slow when inserting a new source code block, Luca Ferrari, 2022/09/25
- Re: emacs really slow when inserting a new source code block, Ihor Radchenko, 2022/09/26
- Re: emacs really slow when inserting a new source code block, Luca Ferrari, 2022/09/26
- Re: emacs really slow when inserting a new source code block,
Ihor Radchenko <=
- Re: emacs really slow when inserting a new source code block, Luca Ferrari, 2022/09/27
- Re: emacs really slow when inserting a new source code block, Ihor Radchenko, 2022/09/27
- Re: emacs really slow when inserting a new source code block, Luca Ferrari, 2022/09/28
- Re: emacs really slow when inserting a new source code block, Ihor Radchenko, 2022/09/28
- Re: emacs really slow when inserting a new source code block, Luca Ferrari, 2022/09/28
- Re: emacs really slow when inserting a new source code block, Luca Ferrari, 2022/09/28
- Re: emacs really slow when inserting a new source code block, Ihor Radchenko, 2022/09/28
- Re: emacs really slow when inserting a new source code block, Luca Ferrari, 2022/09/29
- Re: emacs really slow when inserting a new source code block, Ihor Radchenko, 2022/09/29