[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A proposal for the future of open-paren-in-column-0-is-defun-start.
From: |
Stefan Monnier |
Subject: |
Re: A proposal for the future of open-paren-in-column-0-is-defun-start. |
Date: |
Mon, 06 Apr 2020 11:40:05 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> In that case, we could arrange for open-paren-in-column-0-is-defun-start
> to be heeded _along with_ comment-use-syntax-ppss.
Be my guest. But before accepting such code, I'll want to see some
concrete evidence that it has a real benefit.
So far, all concrete evidence we have has no direct connection to
open-parens-in-column-0 (other than some people's gut feelings).
We should treat this performance problem the same as any other: do the
profiling, look into the code that takes the major part of the time,
look into why it takes so much time, ...
So far we have: scrolling is too slow in some C buffer and the profile
indicates it happens "somewhere in jit-lock". There's a lot that might
be going on "in jit-lock", so we've barely scratched the surface of
the problem.
My gut feeling is that we're going to find that we're not spending much
of that time in `back_comment` (the C function which used this
open-paren-in-column-0 heuristic). This seems to be confirmed by the
fact that setting comment-use-syntax-ppss to nil made no difference: the
problem is elsewhere and we're just wasting time discussing this old
heuristic whose time has passed.
Stefan
- A proposal for the future of open-paren-in-column-0-is-defun-start., Alan Mackenzie, 2020/04/05
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., Stefan Monnier, 2020/04/05
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., Alan Mackenzie, 2020/04/05
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., Richard Stallman, 2020/04/05
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start.,
Stefan Monnier <=
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., Eli Zaretskii, 2020/04/06
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., Stefan Monnier, 2020/04/06
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., Eli Zaretskii, 2020/04/06
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., Stefan Monnier, 2020/04/06
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., Eli Zaretskii, 2020/04/06
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., andres . ramirez, 2020/04/06
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., martin rudalics, 2020/04/07
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., Stefan Monnier, 2020/04/07
- Re: A proposal for the future of open-paren-in-column-0-is-defun-start., Eli Zaretskii, 2020/04/07
Re: A proposal for the future of open-paren-in-column-0-is-defun-start., Dmitry Gutov, 2020/04/06