[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to add pseudo vector types
From: |
Clément Pit-Claudel |
Subject: |
Re: How to add pseudo vector types |
Date: |
Wed, 21 Jul 2021 09:38:31 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 7/21/21 7:26 AM, Eli Zaretskii wrote:
> I still don't see the point. Can you describe in more detail what
> would you suggest doing with the list of gap changes? Just take a
> specific example of a small set of gap changes and tell how to use
> that.
I can try, but the idea was half-baked from the start, so I'm not sure how much
value it will bring. All I was saying is that depending on how robust TS is,
feeding it:
<valuable text><small bit of the gap because the gap moved while TS was
scanning><more valuable data>
and then, knowing that the gap had moved, re-feeding it just the area that
corresponds to the places around the boundaries of the gap might yield a
speedup.
So if the buffer is XYYGGGZ, where G is the gap, and becomes XGGIYYZ while
we're scanning because of cursor motion + an insertion, then TS might see
XYGIYYZ, due to concurrent mutations; but if we recorded that the gap moved and
insertions happened at -#####---, then we can re-feed GGIYY to TS (omitting the
Gs, of course), and hopefully it can reuse the parse of X and Z. If X and Z
are long enough, that can be valuable.
Alternatively, keeping the list of changes allows us to maintain a copy of the
buffer that TS uses for scanning, with updates delayed until TS is done
scanning.
- Re: How to add pseudo vector types, (continued)
- Re: How to add pseudo vector types, Yuan Fu, 2021/07/16
- Re: How to add pseudo vector types, Eli Zaretskii, 2021/07/16
- Re: How to add pseudo vector types, Yuan Fu, 2021/07/16
- Re: How to add pseudo vector types, Yuan Fu, 2021/07/16
- Re: How to add pseudo vector types, Clément Pit-Claudel, 2021/07/16
- Re: How to add pseudo vector types, Yuan Fu, 2021/07/16
- Re: How to add pseudo vector types, Eli Zaretskii, 2021/07/17
- Re: How to add pseudo vector types, Eli Zaretskii, 2021/07/17
- Re: How to add pseudo vector types, Clément Pit-Claudel, 2021/07/20
- Re: How to add pseudo vector types, Eli Zaretskii, 2021/07/21
- Re: How to add pseudo vector types,
Clément Pit-Claudel <=
- Re: How to add pseudo vector types, Eli Zaretskii, 2021/07/21
- Re: How to add pseudo vector types, Clément Pit-Claudel, 2021/07/22
- Re: How to add pseudo vector types, Eli Zaretskii, 2021/07/22
- Re: How to add pseudo vector types, Stephen Leake, 2021/07/21
- Re: How to add pseudo vector types, Clément Pit-Claudel, 2021/07/21
- Re: How to add pseudo vector types, Eli Zaretskii, 2021/07/21
- Re: How to add pseudo vector types, Stephen Leake, 2021/07/23
- Re: How to add pseudo vector types, Óscar Fuentes, 2021/07/23
- Re: How to add pseudo vector types, Eli Zaretskii, 2021/07/24
- Re: How to add pseudo vector types, Stephen Leake, 2021/07/25