[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70796: 30.0.50; bug-reference-mode leading to constant GCing
From: |
Gerd Möllmann |
Subject: |
bug#70796: 30.0.50; bug-reference-mode leading to constant GCing |
Date: |
Sat, 25 May 2024 06:34:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Tassilo Horn <tsdh@gnu.org> writes:
> But anyhow, I don't see how bug-reference-fontify could be so costly
> GC-wise...
It is not by itself, AFAICT. Org fontification allocates which ich not a
problem normally, but with bug-reference active, it is triggered over
and over again.
Interesting observation:
I just built master without native compilation because that's faster.
With .elcs only, I don't seem to get the constant GCs with
9ebe6aa5f1092241a98e0a16db918e3dc1062f1c which is before your fix.
With native compilation I do.
Just double-checked that this is indeed the case. Now it gets
interesting :-/. This is on macOS 14.5, arm64, libgccjit 14.1.
> FWIW, I think goto-address-mode (buttonizing URLs and email addresses)
> will probably have the same effect, at least the code looks pretty
> similar. Can you confirm?
Yes, goto-address-mode has the same effect.
>
> I'll have a look at you sample file tomorrow. How do you make GCs
> "visible" so that I can see when excessive GCing starts/stops?
You can use the attached patch to log GC messages in *Messages* which
makes it easier to see. Then load the Org file, expand all nodes (S-TAB
as needed), move a bit around, and see it happening. And set
garbage-collection-messages to t of course.
0001-On-no-branch-9ebe6aa5f10-lisp-dired.el-dired-mode-map-Bind-E-to-dired-do-open-bug-18132.patch
Description: gc-messages
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, (continued)
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Gerd Möllmann, 2024/05/06
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Gerd Möllmann, 2024/05/07
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Gerd Möllmann, 2024/05/18
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Eli Zaretskii, 2024/05/18
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Tassilo Horn, 2024/05/18
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Tassilo Horn, 2024/05/24
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Gerd Möllmann, 2024/05/24
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Ihor Radchenko, 2024/05/24
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Gerd Möllmann, 2024/05/25
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Tassilo Horn, 2024/05/24
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing,
Gerd Möllmann <=
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Tassilo Horn, 2024/05/25
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Gerd Möllmann, 2024/05/25
- bug#70796: 30.0.50; bug-reference-mode leading to constant GCing, Tassilo Horn, 2024/05/25