Re: Emacs slow-down

2024-03-08 Thread Fraga, Eric
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


Re: Emacs slow-down

2024-03-07 Thread Pedro Andres Aranda Gutierrez
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 
wrote:

> On Thursday, March 7th, 2024 at 11:03, Pedro Andres Aranda Gutierrez <
> paag...@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


Re: Emacs slow-down

2024-03-07 Thread William Denton
On Thursday, March 7th, 2024 at 11:03, Pedro Andres Aranda Gutierrez 
 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




Re: Emacs slow-down

2024-03-07 Thread Pedro Andres Aranda Gutierrez
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 <
paag...@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  wrote:
>
>>
>> On 2024-03-07, 13:23 +, Ihor Radchenko  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


Re: Emacs slow-down

2024-03-07 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez  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 .
Support Org development at ,
or support my work at 



Re: Emacs slow-down

2024-03-07 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez  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 .
Support Org development at ,
or support my work at 



Re: Emacs slow-down

2024-03-07 Thread Pedro Andres Aranda Gutierrez
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  wrote:

>
> On 2024-03-07, 13:23 +, Ihor Radchenko  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


Re: Emacs slow-down

2024-03-07 Thread Bruno Cardoso


On 2024-03-07, 13:23 +, Ihor Radchenko  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.




Re: Emacs slow-down

2024-03-07 Thread Ihor Radchenko
Bruno Cardoso  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 .
Support Org development at ,
or support my work at 



Re: Emacs slow-down

2024-03-07 Thread Bruno Cardoso


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% - #
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  
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