Remove the duplicate page-break planner and page-layout cache
This commit is contained in:
1 parent
dd3a20890d
commit
b4ee4c1330
8 files changed
+40
-1591
No files matched your search
@@ -66,7 +66,6 @@ struct FrontendInputKey {
|
||||
#[derive(Default)]
|
||||
pub struct CompilerSession {
|
||||
paragraph_layout_cache: pdf::ParagraphLayoutCache,
|
||||
page_layout_cache: pdf::PageLayoutCache,
|
||||
compilation_cache: VecDeque<CachedCompilation>,
|
||||
expansion_cache: tex_expansion::ExpansionCache,
|
||||
math_parse_cache: frontend::MathParseCache,
|
||||
@@ -87,7 +86,6 @@ impl CompilerSession {
|
||||
model,
|
||||
source_dir,
|
||||
&mut self.paragraph_layout_cache,
|
||||
&mut self.page_layout_cache,
|
||||
math_metrics,
|
||||
Rc::clone(&self.math_layout_cache),
|
||||
)?;
|
||||
@@ -125,7 +123,6 @@ impl CompilerSession {
|
||||
content_width,
|
||||
content_height,
|
||||
&mut self.paragraph_layout_cache,
|
||||
&mut self.page_layout_cache,
|
||||
)?;
|
||||
let duration_ms = timing_start.elapsed().as_secs_f64() * 1000.0;
|
||||
log_timing("preview", timing_start);
|
||||
|
||||
Reference in new issue
Block a user