From c4d9b0c3d8d2cf895137d2047e597fd3e24e0104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20d=27Herbais=20de=20Thun?= Date: Sat, 30 Dec 2023 13:36:15 +0100 Subject: New performance timings (#3096) Co-authored-by: Laurenz --- crates/typst-syntax/Cargo.toml | 1 - crates/typst-syntax/src/node.rs | 1 - crates/typst-syntax/src/parser.rs | 3 --- crates/typst-syntax/src/source.rs | 1 - 4 files changed, 6 deletions(-) (limited to 'crates/typst-syntax') diff --git a/crates/typst-syntax/Cargo.toml b/crates/typst-syntax/Cargo.toml index b2c721eb..708f7de8 100644 --- a/crates/typst-syntax/Cargo.toml +++ b/crates/typst-syntax/Cargo.toml @@ -20,7 +20,6 @@ comemo = { workspace = true } ecow = { workspace = true } once_cell = { workspace = true } serde = { workspace = true } -tracing = { workspace = true } unicode-ident = { workspace = true } unicode-math-class = { workspace = true } unicode-script = { workspace = true } diff --git a/crates/typst-syntax/src/node.rs b/crates/typst-syntax/src/node.rs index d70f39b7..fed7049c 100644 --- a/crates/typst-syntax/src/node.rs +++ b/crates/typst-syntax/src/node.rs @@ -202,7 +202,6 @@ impl SyntaxNode { } /// Assign spans to each node. - #[tracing::instrument(skip_all)] pub(super) fn numberize( &mut self, id: FileId, diff --git a/crates/typst-syntax/src/parser.rs b/crates/typst-syntax/src/parser.rs index 1d8875dd..9e718b30 100644 --- a/crates/typst-syntax/src/parser.rs +++ b/crates/typst-syntax/src/parser.rs @@ -7,7 +7,6 @@ use unicode_math_class::MathClass; use crate::{ast, is_ident, is_newline, LexMode, Lexer, SyntaxKind, SyntaxNode}; /// Parse a source file. -#[tracing::instrument(skip_all)] pub fn parse(text: &str) -> SyntaxNode { let mut p = Parser::new(text, 0, LexMode::Markup); markup(&mut p, true, 0, |_| false); @@ -15,7 +14,6 @@ pub fn parse(text: &str) -> SyntaxNode { } /// Parse top-level code. -#[tracing::instrument(skip_all)] pub fn parse_code(text: &str) -> SyntaxNode { let mut p = Parser::new(text, 0, LexMode::Code); let m = p.marker(); @@ -26,7 +24,6 @@ pub fn parse_code(text: &str) -> SyntaxNode { } /// Parse top-level math. -#[tracing::instrument(skip_all)] pub fn parse_math(text: &str) -> SyntaxNode { let mut p = Parser::new(text, 0, LexMode::Math); math(&mut p, |_| false); diff --git a/crates/typst-syntax/src/source.rs b/crates/typst-syntax/src/source.rs index 3631a2ea..b4a80d31 100644 --- a/crates/typst-syntax/src/source.rs +++ b/crates/typst-syntax/src/source.rs @@ -30,7 +30,6 @@ struct Repr { impl Source { /// Create a new source file. - #[tracing::instrument(skip_all)] pub fn new(id: FileId, text: String) -> Self { let mut root = parse(&text); root.numberize(id, Span::FULL).unwrap(); -- cgit v1.2.3