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.
This commit is contained in:
Dylan M. Taylor
2026-11-12 01:17:30 +00:00
parent ddccc9f116
commit 1de9914bef
+1 -1
View File
@@ -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<f32> {