mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 19:47:53 +00:00
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:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user