emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Emacs slow-down
@ 2024-03-07  7:23 Pedro Andres Aranda Gutierrez
  2024-03-07  9:48 ` Bruno Cardoso
  0 siblings, 1 reply; 11+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-03-07  7:23 UTC (permalink / raw)
  To: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

Hi

is it just me, or have other people also noticed hiccups when editing org
files with org-mode (main from savannah). The moment I revert to the
org-mode shipped with emacs master, editing returns to normal (and fluid).

Would it make sense to take a closer look at this?

Best, /PA
--
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 866 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs slow-down
  2024-03-07  7:23 Emacs slow-down Pedro Andres Aranda Gutierrez
@ 2024-03-07  9:48 ` Bruno Cardoso
  2024-03-07 13:23   ` Ihor Radchenko
  0 siblings, 1 reply; 11+ messages in thread
From: Bruno Cardoso @ 2024-03-07  9:48 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez, Org Mode List


Hello,

I also did noticed some slow-down in the most recent org. This is the CPU profiler report after typing some words in an org-file I'm working on:

        6493  71% - redisplay_internal (C function)
        6372  70%  - jit-lock-function
        6323  69%   - jit-lock-fontify-now
        6257  68%    - jit-lock--run-functions
        6257  68%     - #<compiled -0x156a3d97f3c27643>
        6246  68%      - font-lock-fontify-region
        6191  68%       - font-lock-default-fontify-region
        3300  36%        - font-lock-fontify-keywords-region
        2448  26%         - org-activate-folds
        2122  23%          - org-fold-core-get-folding-spec
        2035  22%             org-fold-core--property-symbol-get-create
         217   2%          + org-fold-previous-visibility-change
         178   1%         - org-activate-links
         178   1%          - org-activate-links--overlays
           3   0%           - org-element-link-parser
           3   0%              org-link-expand-abbrev

Best,

Bruno.


On 2024-03-07, 08:23 +0100, Pedro Andres Aranda Gutierrez <paaguti@gmail.com> wrote:

> Hi
>
> is it just me, or have other people also noticed hiccups when editing org
> files with org-mode (main from savannah). The moment I revert to the
> org-mode shipped with emacs master, editing returns to normal (and fluid).
>
> Would it make sense to take a closer look at this?
>
> Best, /PA
> --
> Fragen sind nicht da, um beantwortet zu werden,
> Fragen sind da um gestellt zu werden
> Georg Kreisler
>
> Headaches with a Juju log:
> unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
> a leader-deposed hook here, but we can't yet


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs slow-down
  2024-03-07  9:48 ` Bruno Cardoso
@ 2024-03-07 13:23   ` Ihor Radchenko
  2024-03-07 14:58     ` Bruno Cardoso
  0 siblings, 1 reply; 11+ messages in thread
From: Ihor Radchenko @ 2024-03-07 13:23 UTC (permalink / raw)
  To: Bruno Cardoso; +Cc: Pedro Andres Aranda Gutierrez, Org Mode List

Bruno Cardoso <cardoso.bc@gmail.com> writes:

> I also did noticed some slow-down in the most recent org. This is the CPU profiler report after typing some words in an org-file I'm working on:
>
> ...
>         2122  23%          - org-fold-core-get-folding-spec
>         2035  22%             org-fold-core--property-symbol-get-create

This is strange. `org-fold-core--property-symbol-get-create' should be
very fast normally.

A blind guess: do you have `org-fold-core-style' set to 'text-properties?

-- 
Ihor Radchenko // yantar92,
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>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs slow-down
  2024-03-07 13:23   ` Ihor Radchenko
@ 2024-03-07 14:58     ` Bruno Cardoso
  2024-03-07 15:50       ` Pedro Andres Aranda Gutierrez
  0 siblings, 1 reply; 11+ messages in thread
From: Bruno Cardoso @ 2024-03-07 14:58 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Pedro Andres Aranda Gutierrez, Org Mode List


On 2024-03-07, 13:23 +0000, Ihor Radchenko <yantar92@posteo.net> wrote:

> This is strange. `org-fold-core--property-symbol-get-create' should be
> very fast normally.
>
> A blind guess: do you have `org-fold-core-style' set to 'text-properties?
>

Hi Ihor,

No, `org-fold-core-style' is set to 'overlays.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs slow-down
  2024-03-07 14:58     ` Bruno Cardoso
@ 2024-03-07 15:50       ` Pedro Andres Aranda Gutierrez
  2024-03-07 16:03         ` Pedro Andres Aranda Gutierrez
  2024-03-07 16:10         ` Ihor Radchenko
  0 siblings, 2 replies; 11+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-03-07 15:50 UTC (permalink / raw)
  To: Bruno Cardoso; +Cc: Ihor Radchenko, Org Mode List

[-- Attachment #1: Type: text/plain, Size: 881 bytes --]

Hi Ihor,

same here and changing to text-properties didn't help making editing org
files less bumpy and slow.
I don't know if 886 lines is really very much... but that's my org-beamer
size for a double lecture.

Best, /PA

On Thu, 7 Mar 2024 at 15:58, Bruno Cardoso <cardoso.bc@gmail.com> wrote:

>
> On 2024-03-07, 13:23 +0000, Ihor Radchenko <yantar92@posteo.net> wrote:
>
> > This is strange. `org-fold-core--property-symbol-get-create' should be
> > very fast normally.
> >
> > A blind guess: do you have `org-fold-core-style' set to 'text-properties?
> >
>
> Hi Ihor,
>
> No, `org-fold-core-style' is set to 'overlays.
>
>

-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 1622 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs slow-down
  2024-03-07 15:50       ` Pedro Andres Aranda Gutierrez
@ 2024-03-07 16:03         ` Pedro Andres Aranda Gutierrez
  2024-03-07 16:11           ` Ihor Radchenko
  2024-03-07 16:21           ` William Denton
  2024-03-07 16:10         ` Ihor Radchenko
  1 sibling, 2 replies; 11+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-03-07 16:03 UTC (permalink / raw)
  To: Bruno Cardoso; +Cc: Ihor Radchenko, Org Mode List

[-- Attachment #1: Type: text/plain, Size: 2186 bytes --]

Hi,

my profiling when deleting a line from a table:

         650  43% + redisplay_internal (C function)
         521  35% - command-execute
         470  31%  - byte-code
         470  31%   - read-extended-command
         470  31%    - read-extended-command-1
         470  31%     - completing-read-default
         443  29%      + redisplay_internal (C function)
          11   0%      - timer-event-handler
          11   0%       - apply
           7   0%        + jinx--timer-handler
           4   0%        + org-element--cache-sync
          51   3%  - funcall-interactively
          34   2%   + org-kill-line
          17   1%   + next-line
         200  13%   Automatic GC
          57   3% + ...
          57   3% + timer-event-handler

Interestingly enough, this redisplay_internal function seems to be the real
pain. I think we need to switch to the main
emacs devel list here...

Best, /PA

On Thu, 7 Mar 2024 at 16:50, Pedro Andres Aranda Gutierrez <
paaguti@gmail.com> wrote:

> Hi Ihor,
>
> same here and changing to text-properties didn't help making editing org
> files less bumpy and slow.
> I don't know if 886 lines is really very much... but that's my org-beamer
> size for a double lecture.
>
> Best, /PA
>
> On Thu, 7 Mar 2024 at 15:58, Bruno Cardoso <cardoso.bc@gmail.com> wrote:
>
>>
>> On 2024-03-07, 13:23 +0000, Ihor Radchenko <yantar92@posteo.net> wrote:
>>
>> > This is strange. `org-fold-core--property-symbol-get-create' should be
>> > very fast normally.
>> >
>> > A blind guess: do you have `org-fold-core-style' set to
>> 'text-properties?
>> >
>>
>> Hi Ihor,
>>
>> No, `org-fold-core-style' is set to 'overlays.
>>
>>
>
> --
> Fragen sind nicht da, um beantwortet zu werden,
> Fragen sind da um gestellt zu werden
> Georg Kreisler
>
> Headaches with a Juju log:
> unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
> a leader-deposed hook here, but we can't yet
>
>

-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 3702 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs slow-down
  2024-03-07 15:50       ` Pedro Andres Aranda Gutierrez
  2024-03-07 16:03         ` Pedro Andres Aranda Gutierrez
@ 2024-03-07 16:10         ` Ihor Radchenko
  1 sibling, 0 replies; 11+ messages in thread
From: Ihor Radchenko @ 2024-03-07 16:10 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: Bruno Cardoso, Org Mode List

Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:

> same here and changing to text-properties didn't help making editing org
> files less bumpy and slow.
> I don't know if 886 lines is really very much... but that's my org-beamer
> size for a double lecture.

Any chance you can provide a reproducer starting from make repro?

-- 
Ihor Radchenko // yantar92,
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>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs slow-down
  2024-03-07 16:03         ` Pedro Andres Aranda Gutierrez
@ 2024-03-07 16:11           ` Ihor Radchenko
  2024-03-07 16:21           ` William Denton
  1 sibling, 0 replies; 11+ messages in thread
From: Ihor Radchenko @ 2024-03-07 16:11 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: Bruno Cardoso, Org Mode List

Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:

>          443  29%      + redisplay_internal (C function)
> ...
> Interestingly enough, this redisplay_internal function seems to be the real
> pain. I think we need to switch to the main
> emacs devel list here...

Unlikely. Note the +. redisplay_internal can (and does) call Elisp code.
In particular fontification.

-- 
Ihor Radchenko // yantar92,
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>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs slow-down
  2024-03-07 16:03         ` Pedro Andres Aranda Gutierrez
  2024-03-07 16:11           ` Ihor Radchenko
@ 2024-03-07 16:21           ` William Denton
  2024-03-08  6:54             ` Pedro Andres Aranda Gutierrez
  1 sibling, 1 reply; 11+ messages in thread
From: William Denton @ 2024-03-07 16:21 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez
  Cc: Bruno Cardoso, Ihor Radchenko, Org Mode List

On Thursday, March 7th, 2024 at 11:03, Pedro Andres Aranda Gutierrez <paaguti@gmail.com> wrote:

> Interestingly enough, this redisplay_internal function seems to be the real pain. I think we need to switch to the main
> emacs devel list here...

I wonder if those of us seeing this have something in common about our configurations.  Might it be a package that's getting in the way, and a change there is causing this?  Or does the profiling show it's in base Org?


Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs slow-down
  2024-03-07 16:21           ` William Denton
@ 2024-03-08  6:54             ` Pedro Andres Aranda Gutierrez
  2024-03-08 11:41               ` Fraga, Eric
  0 siblings, 1 reply; 11+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-03-08  6:54 UTC (permalink / raw)
  To: William Denton; +Cc: Bruno Cardoso, Ihor Radchenko, Org Mode List

[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]

Hi Bill

another sleepless night. Having something to distract me is helpful. In
this case, one of the root causes for my insufferable slowdown was not
org-mode but jinx (the spell checker). Without it, I do notice a slow down
when going through my slides, but much less.

Going back to ispell...

Best, /PA

On Thu, 7 Mar 2024 at 17:21, William Denton <william@williamdenton.org>
wrote:

> On Thursday, March 7th, 2024 at 11:03, Pedro Andres Aranda Gutierrez <
> paaguti@gmail.com> wrote:
>
> > Interestingly enough, this redisplay_internal function seems to be the
> real pain. I think we need to switch to the main
> > emacs devel list here...
>
> I wonder if those of us seeing this have something in common about our
> configurations.  Might it be a package that's getting in the way, and a
> change there is causing this?  Or does the profiling show it's in base Org?
>
>
> Bill
>
> --
> William Denton
> https://www.miskatonic.org/
> Librarian, artist and licensed private investigator.
> Toronto, Canada
>
>

-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 2070 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Emacs slow-down
  2024-03-08  6:54             ` Pedro Andres Aranda Gutierrez
@ 2024-03-08 11:41               ` Fraga, Eric
  0 siblings, 0 replies; 11+ messages in thread
From: Fraga, Eric @ 2024-03-08 11:41 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: Org Mode List

On Friday,  8 Mar 2024 at 07:54, Pedro Andres Aranda Gutierrez wrote:
> In this case, one of the root causes for my insufferable
> slowdown was not org-mode but jinx (the spell checker). 

I turned jinx off as well.  The other culprit, for me, was wc-mode.  I
now count words explicitly when needed and use flyspell-buffer also
manually.

But I still see some lagging every now and again and keep
investigating...

-- 
: Eric S Fraga, with org release_9.6.19-1215-g67d937 in Emacs 30.0.50

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-03-08 11:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-07  7:23 Emacs slow-down Pedro Andres Aranda Gutierrez
2024-03-07  9:48 ` Bruno Cardoso
2024-03-07 13:23   ` Ihor Radchenko
2024-03-07 14:58     ` Bruno Cardoso
2024-03-07 15:50       ` Pedro Andres Aranda Gutierrez
2024-03-07 16:03         ` Pedro Andres Aranda Gutierrez
2024-03-07 16:11           ` Ihor Radchenko
2024-03-07 16:21           ` William Denton
2024-03-08  6:54             ` Pedro Andres Aranda Gutierrez
2024-03-08 11:41               ` Fraga, Eric
2024-03-07 16:10         ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).