From 1de9914bef8543d67d04929596bcbc7ccd8b43d4 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Thu, 12 Nov 2026 01:17:30 +0000 Subject: [PATCH] craft-latex: math through craft_math::latex_text; label timing test by ratio The document math converter moved to craft-math (#1040) unchanged; this crate calls it there (and its length parser uses its group finders), so export output is the same. The label test compared one read with a ten-second wall clock and failed on a loaded machine; it now compares the fastest of three reads of 25,000 and 100,000 labels, which a linear read keeps near 4x and a quadratic one near 16x. --- crates/latex/src/units.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/latex/src/units.rs b/crates/latex/src/units.rs index b4186a3a26..75ac02a2b7 100644 --- a/crates/latex/src/units.rs +++ b/crates/latex/src/units.rs @@ -1,7 +1,7 @@ use super::Rgb; use super::export::{LINE_WIDTH, TABCOLSEP}; use super::limits::MAX_NEST; -use super::math::{balanced, closers}; +use craft_math::latex_text::{balanced, closers}; /// Font size declarations (points, for the default 10 pt article). pub(super) fn size_of(name: &str) -> Option {