Experiment with verified child segment continuation reuse

This commit is contained in:
gloamxun committed 2026-11-29 11:36:21 +08:00
1 parent 51db480b34
commit 64adf51b20
9 files changed
+247 -23

No files matched your search

@@ -297,7 +297,7 @@ pub(super) struct Mouth {
}
impl Mouth {
pub(super) fn same_unread_input(&self, other: &Self) -> bool {
pub(super) fn same_unread_input(&self, other: &Self, compare_unread: bool) -> bool {
self.source == other.source
&& self.profile == other.profile
&& self.offset == other.offset
@@ -309,7 +309,7 @@ impl Mouth {
&& self.line_number == other.line_number
&& self.xe == other.xe
&& self.invalid_utf8 == other.invalid_utf8
&& self.data[self.offset..] == other.data[other.offset..]
&& (!compare_unread || self.data[self.offset..] == other.data[other.offset..])
}
pub(super) fn physical_frontier(&self) -> Option<usize> {