unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Info is slow in Emacs 22.0.50
@ 2005-06-10 23:27 Nick Roberts
  2005-06-10 23:45 ` Luc Teirlinck
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Nick Roberts @ 2005-06-10 23:27 UTC (permalink / raw)



I noticed that info in Emacs 21.2, on my 200MHz PC, is a lot more responsive
than in Emacs 22.0.50. Am I getting anything extra for the longer wait?

Nick

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-10 23:27 Info is slow in Emacs 22.0.50 Nick Roberts
@ 2005-06-10 23:45 ` Luc Teirlinck
  2005-06-11  9:59   ` Nick Roberts
  2005-06-11 12:52 ` Eli Zaretskii
  2005-06-11 23:16 ` Richard Stallman
  2 siblings, 1 reply; 17+ messages in thread
From: Luc Teirlinck @ 2005-06-10 23:45 UTC (permalink / raw)
  Cc: emacs-devel

Nick Roberts wrote:

   I noticed that info in Emacs 21.2, on my 200MHz PC, is a lot more responsive
   than in Emacs 22.0.50. Am I getting anything extra for the longer wait?

Does it help to set Info-hide-note-references to nil?

Sincerely,

Luc.

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-10 23:45 ` Luc Teirlinck
@ 2005-06-11  9:59   ` Nick Roberts
  2005-06-11 23:18     ` Juri Linkov
  0 siblings, 1 reply; 17+ messages in thread
From: Nick Roberts @ 2005-06-11  9:59 UTC (permalink / raw)
  Cc: emacs-devel

 >    I noticed that info in Emacs 21.2, on my 200MHz PC, is a lot more
 >    responsive than in Emacs 22.0.50. Am I getting anything extra for the
 >    longer wait?
 > 
 > Does it help to set Info-hide-note-references to nil?

I can't see any difference.  I haven't been very scientific and it probably
wouldn't be noticeable with a more powerful computer.

Nick

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-10 23:27 Info is slow in Emacs 22.0.50 Nick Roberts
  2005-06-10 23:45 ` Luc Teirlinck
@ 2005-06-11 12:52 ` Eli Zaretskii
  2005-06-11 23:18   ` Juri Linkov
  2005-06-11 23:16 ` Richard Stallman
  2 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2005-06-11 12:52 UTC (permalink / raw)
  Cc: emacs-devel

> From: Nick Roberts <nickrob@snap.net.nz>
> Date: Sat, 11 Jun 2005 11:27:38 +1200
> 
> 
> I noticed that info in Emacs 21.2, on my 200MHz PC, is a lot more responsive
> than in Emacs 22.0.50.

Can you profile info.el with elp.el and show here what were the
hotspots?  That could give a clue about where to look for the reasons
for the slowdown.

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-10 23:27 Info is slow in Emacs 22.0.50 Nick Roberts
  2005-06-10 23:45 ` Luc Teirlinck
  2005-06-11 12:52 ` Eli Zaretskii
@ 2005-06-11 23:16 ` Richard Stallman
  2 siblings, 0 replies; 17+ messages in thread
From: Richard Stallman @ 2005-06-11 23:16 UTC (permalink / raw)
  Cc: emacs-devel

    I noticed that info in Emacs 21.2, on my 200MHz PC, is a lot more responsive
    than in Emacs 22.0.50. Am I getting anything extra for the longer wait?

There is no way of knowing the answer until we know what causes the
slowdown.  Would you like to debug it and find out?

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-11  9:59   ` Nick Roberts
@ 2005-06-11 23:18     ` Juri Linkov
  2005-06-12  2:31       ` Nick Roberts
  0 siblings, 1 reply; 17+ messages in thread
From: Juri Linkov @ 2005-06-11 23:18 UTC (permalink / raw)
  Cc: teirllm, emacs-devel

>  >    I noticed that info in Emacs 21.2, on my 200MHz PC, is a lot more
>  >    responsive than in Emacs 22.0.50. Am I getting anything extra for the
>  >    longer wait?
>  > 
>  > Does it help to set Info-hide-note-references to nil?
>
> I can't see any difference.  I haven't been very scientific and it probably
> wouldn't be noticeable with a more powerful computer.

Do you see a difference with Info-fontify-maximum-menu-size set to 0?
Could you try this on a slow computer?

-- 
Juri Linkov
http://www.jurta.org/emacs/

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-11 12:52 ` Eli Zaretskii
@ 2005-06-11 23:18   ` Juri Linkov
  2005-06-12 16:47     ` Stefan Monnier
  2005-06-12 19:58     ` Richard Stallman
  0 siblings, 2 replies; 17+ messages in thread
From: Juri Linkov @ 2005-06-11 23:18 UTC (permalink / raw)
  Cc: nickrob, emacs-devel

> Can you profile info.el with elp.el and show here what were the
> hotspots?  That could give a clue about where to look for the reasons
> for the slowdown.

In Emacs started with -Q -D I see no slowdown at all.  But with full
.emacs loaded and Emacs desktop restored I observe a noticeable
slowdown even on 1GHz PC, when visiting Info nodes with large menus.
So I also could look for the reasons for the slowdown.

I profiled info.el with elp.el and got the following results
for visiting the node (info "(elisp)Top") from the Directory node:

In Emacs started with `emacs -Q -D':

Function Name                     Call Count  Elapsed Time  Average Time
================================  ==========  ============  ============
Info-follow-nearest-node          1           0.647439      0.647439
Info-try-follow-nearest-node      1           0.647387      0.647387
Info-goto-node                    1           0.645898      0.645898
Info-find-node                    1           0.645779      0.645779
Info-find-node-2                  1           0.642741      0.642741
Info-select-node                  1           0.61038       0.61038
Info-fontify-node                 1           0.606797      0.606797
re-search-forward                 730         0.1290569999  0.0001767904
add-text-properties               1266        0.1187029999  9.376...e-05
info-insert-file-contents         2           0.0292629999  0.0146314999
Info-read-subfile                 1           0.026425      0.026425
match-string                      1908        0.0107000000  5.607...e-06
put-text-property                 1559        0.0106910000  6.857...e-06
looking-at                        1409        0.0063000000  4.471...e-06
Info-find-file                    1           0.002987      0.002987
info-file-exists-p                49          0.0021950000  4.479...e-05
Info-index-node                   3           0.001246      0.0004153333
Info-get-token                    4           0.000875      0.00021875
Info-display-images-node          1           0.000757      0.000757
Info-hide-cookies-node            1           0.000731      0.000731
Info-find-node-in-buffer          1           0.00027       0.00027
Info-find-node-in-buffer-1        1           0.000249      0.000249
Info-find-in-tag-table            1           0.000229      0.000229
info-insert-file-contents-1       47          0.0002099999  4.468...e-06
Info-find-in-tag-table-1          2           0.000202      0.000101
Info-extract-menu-node-name       1           0.000171      0.000171
Info-set-mode-line                1           0.000141      0.000141
Info-escape-percent               1           9.5e-05       9.5e-05
Info-following-node-name-re       1           1.3e-05       1.3e-05
Info-node-at-bob-matching         1           7e-06         7e-06
info-initialize                   2           6e-06         3e-06

With loaded .emacs and Info-fontify-maximum-menu-size = 100000:

Function Name                     Call Count  Elapsed Time  Average Time
================================  ==========  ============  ============
Info-follow-nearest-node          1           18.451064     18.451064
Info-try-follow-nearest-node      1           18.450906     18.450906
Info-goto-node                    1           18.449308     18.449308
Info-find-node                    1           18.449179     18.449179
Info-find-node-2                  1           18.431969     18.431969
Info-select-node                  1           18.39279      18.39279
Info-fontify-node                 1           18.388963     18.388963
put-text-property                 1559        5.4653120000  0.0035056523
re-search-forward                 730         0.0564030000  7.726...e-05
info-insert-file-contents         2           0.0362220000  0.0181110000
Info-read-subfile                 1           0.028904      0.028904
match-string                      1908        0.0194390000  1.018...e-05
Info-find-file                    1           0.017144      0.017144
add-text-properties               1266        0.0143140000  1.130...e-05
match-end                         5447        0.0123990000  2.276...e-06
info-file-exists-p                145         0.0105809999  7.297...e-05
looking-at                        1409        0.0097819999  6.942...e-06
match-beginning                   3356        0.0080770000  2.406...e-06
Info-index-node                   3           0.005018      0.0016726666
Info-display-images-node          1           0.001014      0.001014
Info-hide-cookies-node            1           0.000979      0.000979
Info-get-token                    4           0.0009629999  0.0002407499
info-insert-file-contents-1       143         0.0006999999  4.895...e-06
Info-find-node-in-buffer          1           0.000264      0.000264
Info-find-node-in-buffer-1        1           0.000241      0.000241
Info-find-in-tag-table            1           0.000229      0.000229
Info-find-in-tag-table-1          2           0.0001999999  9.999...e-05
Info-extract-menu-node-name       1           0.00019       0.00019
Info-set-mode-line                1           0.000182      0.000182
Info-escape-percent               1           9.8e-05       9.8e-05
replace-regexp-in-string          1           6e-05         6e-05
Info-following-node-name-re       1           1.3e-05       1.3e-05
Info-node-at-bob-matching         1           9e-06         9e-06
info-initialize                   2           6e-06         3e-06

With loaded .emacs and Info-fontify-maximum-menu-size = 0:

Function Name                     Call Count  Elapsed Time  Average Time
================================  ==========  ============  ============
Info-follow-nearest-node          1           0.060599      0.060599
Info-try-follow-nearest-node      1           0.060563      0.060563
Info-goto-node                    1           0.058121      0.058121
Info-find-node                    1           0.057991      0.057991
Info-find-node-2                  1           0.046453      0.046453
info-insert-file-contents         2           0.027276      0.013638
Info-read-subfile                 1           0.024617      0.024617
re-search-forward                 96          0.0177140000  0.0001845208
Info-select-node                  1           0.0177        0.0177
Info-fontify-node                 1           0.014428      0.014428
Info-find-file                    1           0.011469      0.011469
info-file-exists-p                145         0.008243      5.684...e-05
Info-get-token                    4           0.001839      0.00045975
looking-at                        44          0.0013139999  2.986...e-05
Info-index-node                   3           0.001055      0.0003516666
put-text-property                 92          0.0008159999  8.869...e-06
Info-display-images-node          1           0.000754      0.000754
Info-hide-cookies-node            1           0.00073       0.00073
info-insert-file-contents-1       143         0.0006709999  4.692...e-06
Info-find-node-in-buffer          1           0.000286      0.000286
Info-find-node-in-buffer-1        1           0.000263      0.000263
Info-find-in-tag-table            1           0.000231      0.000231
Info-find-in-tag-table-1          2           0.000202      0.000101
match-beginning                   86          0.0001779999  2.069...e-06
Info-extract-menu-node-name       1           0.000159      0.000159
match-end                         86          0.0001589999  1.848...e-06
Info-set-mode-line                1           0.000126      0.000126
Info-escape-percent               1           0.000121      0.000121
match-string                      9           6.6e-05       7.333...e-06
replace-regexp-in-string          1           4.2e-05       4.2e-05
Info-following-node-name-re       1           1.2e-05       1.2e-05
Info-node-at-bob-matching         1           1e-05         1e-05
info-initialize                   2           8.000...e-06  4.000...e-06

These results indicate that the main source of the slowdown is the
menu items fontification code in `Info-fontify-node', and it is caused
by a large amount of Info menu items needed to be processed.

-- 
Juri Linkov
http://www.jurta.org/emacs/

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-11 23:18     ` Juri Linkov
@ 2005-06-12  2:31       ` Nick Roberts
  2005-06-12  8:51         ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Nick Roberts @ 2005-06-12  2:31 UTC (permalink / raw)
  Cc: teirllm, emacs-devel

 > >  >    I noticed that info in Emacs 21.2, on my 200MHz PC, is a lot more
 > >  >    responsive than in Emacs 22.0.50. Am I getting anything extra for the
 > >  >    longer wait?
 > >  > 
 > >  > Does it help to set Info-hide-note-references to nil?
 > >
 > > I can't see any difference.  I haven't been very scientific and it probably
 > > wouldn't be noticeable with a more powerful computer.
 > 
 > Do you see a difference with Info-fontify-maximum-menu-size set to 0?
 > Could you try this on a slow computer?

Yes, it seems to be a lot quicker. However, Info-fontify-maximum-menu-size is
defined in Emacs 21.2, and is set to 100000.

Nick

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-12  2:31       ` Nick Roberts
@ 2005-06-12  8:51         ` Eli Zaretskii
  2005-06-13  1:50           ` Nick Roberts
  0 siblings, 1 reply; 17+ messages in thread
From: Eli Zaretskii @ 2005-06-12  8:51 UTC (permalink / raw)
  Cc: emacs-devel

> From: Nick Roberts <nickrob@snap.net.nz>
> Date: Sun, 12 Jun 2005 14:31:29 +1200
> Cc: teirllm@dms.auburn.edu, emacs-devel@gnu.org
> 
> Yes, it seems to be a lot quicker. However, Info-fontify-maximum-menu-size is
> defined in Emacs 21.2, and is set to 100000.

It would be good to have a profile produced by elp.el for both
versions of Emacs on the same machine.  Could you please try to do
that?

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-11 23:18   ` Juri Linkov
@ 2005-06-12 16:47     ` Stefan Monnier
  2005-06-13  6:08       ` Juri Linkov
  2005-06-12 19:58     ` Richard Stallman
  1 sibling, 1 reply; 17+ messages in thread
From: Stefan Monnier @ 2005-06-12 16:47 UTC (permalink / raw)
  Cc: Eli Zaretskii, nickrob, emacs-devel

> These results indicate that the main source of the slowdown is the
> menu items fontification code in `Info-fontify-node', and it is caused
> by a large amount of Info menu items needed to be processed.

While I still don't understand where the slowdown actually comes from
(e.g. why do 1559 calls to put-text-property take 0.01s with -Q -D but then
take 5.46s with a loaded .emacs?  Also more than half the elasped time is
unaccounted for in the profile of the pathological case), we can always try
and move some of Info-fontify-node into font-lock-keywords where jit-lock
should help us stay nice and responsive.


        Stefan

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-11 23:18   ` Juri Linkov
  2005-06-12 16:47     ` Stefan Monnier
@ 2005-06-12 19:58     ` Richard Stallman
  2005-06-13  6:07       ` Juri Linkov
  1 sibling, 1 reply; 17+ messages in thread
From: Richard Stallman @ 2005-06-12 19:58 UTC (permalink / raw)
  Cc: eliz, nickrob, emacs-devel

    These results indicate that the main source of the slowdown is the
    menu items fontification code in `Info-fontify-node', and it is caused
    by a large amount of Info menu items needed to be processed.

How many menu items were there, in the case where this took 18 seconds?

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-12  8:51         ` Eli Zaretskii
@ 2005-06-13  1:50           ` Nick Roberts
  2005-06-13  2:19             ` Luc Teirlinck
  0 siblings, 1 reply; 17+ messages in thread
From: Nick Roberts @ 2005-06-13  1:50 UTC (permalink / raw)
  Cc: emacs-devel

 > > Yes, it seems to be a lot quicker. However,
 > > Info-fontify-maximum-menu-size is defined in Emacs 21.2, and is set to
 > > 100000.
 > 
 > It would be good to have a profile produced by elp.el for both
 > versions of Emacs on the same machine.  Could you please try to do
 > that?

See below.

Nick


Emacs 22.0.50:

Function Name                 Call Count  Elapsed Time  Average Time
============================  ==========  ============  ============
Info-find-node                7           21.172766     3.0246808571
Info-find-node-2              7           21.128822     3.0184031428
Info-select-node              7           17.411849     2.487407
Info-fontify-node             7           17.036693     2.4338132857
Info-goto-node                6           16.303847     2.7173078333
Info-try-follow-nearest-node  3           5.977882      1.9926273333
re-search-forward             5636        4.425727      0.0007852602
match-string                  9652        2.9236260000  0.0003029036
add-text-properties           4079        1.3989419999  0.0003429620
put-text-property             4796        1.0882859999  0.0002269153
looking-at                    4611        0.7941859999  0.0001722372
info-insert-file-contents     4           0.4103009999  0.1025752499
Info-read-subfile             5           0.376261      0.0752522
Info-hide-cookies-node        7           0.159282      0.0227545714
Info-display-images-node      7           0.139135      0.0198764285
Info-find-in-tag-table        5           0.100092      0.0200184
Info-find-in-tag-table-1      10          0.0990580000  0.0099058000
Info-get-token                10          0.0415750000  0.0041575000
Info-find-file                7           0.0346720000  0.0049531428
info-file-exists-p            51          0.0270569999  0.0005305294
Info-index-node               13          0.0245999999  0.0018923076
info-initialize               13          0.0075040000  0.0005772307
Info-find-node-in-buffer      7           0.007392      0.001056
Info-find-node-in-buffer-1    8           0.0065340000  0.0008167500
Info-extract-menu-node-name   1           0.00376       0.00376
Info-set-mode-line            8           0.0036720000  0.0004590000
Info-escape-percent           6           0.0024220000  0.0004036666
info-insert-file-contents-1   47          0.002114      4.497...e-05
Info-node-at-bob-matching     8           0.0008960000  0.0001120000
Info-following-node-name-re   6           0.000437      7.283...e-05


Emacs 21.2:

Function Name                 Call Count  Elapsed Time  Average Time
============================  ==========  ============  ============
Info-find-node                7           1.948092      0.2782988571
Info-find-node-2              7           1.6609639999  0.2372805714
Info-goto-node                6           1.5201160000  0.2533526666
Info-select-node              7           1.080728      0.1543897142
Info-fontify-node             7           1.0344760000  0.1477822857
re-search-forward             3813        0.7542230000  0.0001978030
Info-try-follow-nearest-node  3           0.7338629999  0.2446209999
add-text-properties           1730        0.1212629999  7.009...e-05
Info-read-subfile             5           0.11837       0.023674
info-file-exists-p            99          0.1125409999  0.0011367777
info-insert-file-contents     4           0.1092979999  0.0273244999
Info-find-in-tag-table        5           0.047457      0.0094914
Info-find-in-tag-table-1      10          0.0466510000  0.0046651
put-text-property             448         0.0236030000  5.268...e-05
looking-at                    223         0.0128719999  5.772...e-05
Info-get-token                7           0.0114979999  0.0016425714
Info-find-node-in-buffer      7           0.006231      0.0008901428
Info-find-node-in-buffer-1    8           0.0055099999  0.0006887499
info-initialize               13          0.0053039999  0.0004079999
info-insert-file-contents-1   95          0.0037479999  3.945...e-05
Info-set-mode-line            8           0.001929      0.000241125
Info-extract-menu-node-name   1           0.001478      0.001478
Info-node-at-bob-matching     8           0.000746      9.325e-05
match-string                  10          0.0003899999  3.899...e-05

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-13  1:50           ` Nick Roberts
@ 2005-06-13  2:19             ` Luc Teirlinck
  2005-06-13  2:54               ` Nick Roberts
  0 siblings, 1 reply; 17+ messages in thread
From: Luc Teirlinck @ 2005-06-13  2:19 UTC (permalink / raw)
  Cc: eliz, emacs-devel

But the strange thing in all of this is that Juri seems to say that
there is no slowdown with Emacs started with -Q -D.  Does the same
apply to you?  If so, what in your .emacs could produce the slowdown?
In as far as Info itself is concerned, I can only think of
`Info-refill-paragraphs', but the customization does, of course, not
need to be directly related to Info.

Sincerely,

Luc.

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-13  2:19             ` Luc Teirlinck
@ 2005-06-13  2:54               ` Nick Roberts
  0 siblings, 0 replies; 17+ messages in thread
From: Nick Roberts @ 2005-06-13  2:54 UTC (permalink / raw)
  Cc: eliz, emacs-devel

 > But the strange thing in all of this is that Juri seems to say that
 > there is no slowdown with Emacs started with -Q -D.  Does the same
 > apply to you?  If so, what in your .emacs could produce the slowdown?
 > In as far as Info itself is concerned, I can only think of
 > `Info-refill-paragraphs', but the customization does, of course, not
 > need to be directly related to Info.

Repeating the experiment I get similar results with (22.0.50):
emacs
emacs -Q
emacs -D
emacs -Q -D

except that these are twice as fast as my previously posted result and the
user experience varies (emacs -Q seemed slower than emacs -D). I'm not
familiar with elp, but I imagine that there is some skill in understanding
the results and in doing a control test.

Nick


Function Name                 Call Count  Elapsed Time  Average Time
============================  ==========  ============  ============
Info-find-node                7           10.825845000  1.5465492857
Info-find-node-2              7           10.781726     1.5402465714
Info-select-node              7           9.164947      1.3092781428
Info-fontify-node             7           9.0328870000  1.2904124285
Info-goto-node                6           8.209637      1.3682728333
Info-try-follow-nearest-node  3           3.091947      1.030649
re-search-forward             5631        1.8600030000  0.0003303148
match-string                  9652        0.8224279999  8.520...e-05
add-text-properties           4079        0.6348320000  0.0001556342
put-text-property             4796        0.3745849999  7.810...e-05
looking-at                    4517        0.2494090000  5.521...e-05
Info-read-subfile             5           0.17378       0.0347559999
info-insert-file-contents     4           0.164102      0.0410255
Info-find-in-tag-table        5           0.0827790000  0.0165558000
Info-find-in-tag-table-1      10          0.081705      0.0081705
info-file-exists-p            51          0.027737      0.0005438627
Info-get-token                10          0.022844      0.0022844
Info-find-node-in-buffer      7           0.007892      0.0011274285
info-initialize               13          0.0071050000  0.0005465384
Info-find-node-in-buffer-1    8           0.0070580000  0.0008822500
Info-set-mode-line            8           0.0036589999  0.0004573749
info-insert-file-contents-1   47          0.0024929999  5.304...e-05
Info-extract-menu-node-name   1           0.001168      0.001168
Info-node-at-bob-matching     8           0.0008669999  0.0001083749

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-12 19:58     ` Richard Stallman
@ 2005-06-13  6:07       ` Juri Linkov
  2005-06-13 23:39         ` Richard Stallman
  0 siblings, 1 reply; 17+ messages in thread
From: Juri Linkov @ 2005-06-13  6:07 UTC (permalink / raw)
  Cc: eliz, nickrob, emacs-devel

>     These results indicate that the main source of the slowdown is the
>     menu items fontification code in `Info-fontify-node', and it is caused
>     by a large amount of Info menu items needed to be processed.
>
> How many menu items were there, in the case where this took 18 seconds?

633.

-- 
Juri Linkov
http://www.jurta.org/emacs/

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-12 16:47     ` Stefan Monnier
@ 2005-06-13  6:08       ` Juri Linkov
  0 siblings, 0 replies; 17+ messages in thread
From: Juri Linkov @ 2005-06-13  6:08 UTC (permalink / raw)
  Cc: eliz, nickrob, emacs-devel

>> These results indicate that the main source of the slowdown is the
>> menu items fontification code in `Info-fontify-node', and it is caused
>> by a large amount of Info menu items needed to be processed.
>
> While I still don't understand where the slowdown actually comes from
> (e.g. why do 1559 calls to put-text-property take 0.01s with -Q -D but then
> take 5.46s with a loaded .emacs?  Also more than half the elasped time is
> unaccounted for in the profile of the pathological case), we can always try
> and move some of Info-fontify-node into font-lock-keywords where jit-lock
> should help us stay nice and responsive.

Definitely worth trying.  But before doing that I want to understand
why in `emacs -Q -D' this is faster.

-- 
Juri Linkov
http://www.jurta.org/emacs/

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

* Re: Info is slow in Emacs 22.0.50
  2005-06-13  6:07       ` Juri Linkov
@ 2005-06-13 23:39         ` Richard Stallman
  0 siblings, 0 replies; 17+ messages in thread
From: Richard Stallman @ 2005-06-13 23:39 UTC (permalink / raw)
  Cc: eliz, nickrob, emacs-devel

    > How many menu items were there, in the case where this took 18 seconds?

    633.

If each one took 1/30 of a second, that is absurdly slow.
I wonder if some regexp is badly written and looping.

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

end of thread, other threads:[~2005-06-13 23:39 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-10 23:27 Info is slow in Emacs 22.0.50 Nick Roberts
2005-06-10 23:45 ` Luc Teirlinck
2005-06-11  9:59   ` Nick Roberts
2005-06-11 23:18     ` Juri Linkov
2005-06-12  2:31       ` Nick Roberts
2005-06-12  8:51         ` Eli Zaretskii
2005-06-13  1:50           ` Nick Roberts
2005-06-13  2:19             ` Luc Teirlinck
2005-06-13  2:54               ` Nick Roberts
2005-06-11 12:52 ` Eli Zaretskii
2005-06-11 23:18   ` Juri Linkov
2005-06-12 16:47     ` Stefan Monnier
2005-06-13  6:08       ` Juri Linkov
2005-06-12 19:58     ` Richard Stallman
2005-06-13  6:07       ` Juri Linkov
2005-06-13 23:39         ` Richard Stallman
2005-06-11 23:16 ` Richard Stallman

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

	https://git.savannah.gnu.org/cgit/emacs.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).