Deduplicate native dependency reads on the execution path

This commit is contained in:
gloamxun committed 2026-11-29 04:46:22 +08:00
1 parent c23dabb449
commit 4791c42403
9 files changed
+139 -38

No files matched your search

@@ -1,5 +1,5 @@
//! XeTeX physical input encodings. Decoded units retain their source bytes.
use std::{collections::BTreeSet, sync::Arc};
use std::sync::Arc;
use super::{Dependency, Parameter, ParameterValue, State};
@@ -121,7 +121,7 @@ impl Encoding {
data: &[u8],
base: usize,
state: &State,
reads: &mut BTreeSet<Dependency>,
reads: &mut super::DependencyReads,
) -> Result<(Vec<Character>, usize), String> {
let (mut characters, warnings) = self.decode(data, base)?;
let parameter = Parameter::XeTeXinputnormalization;