docs(parser): clean up doc regarding performance; remove conformance

conformance is removed due to needing to keep it updated.
This commit is contained in:
Boshen 2024-08-12 13:55:23 +08:00
parent 8ddc2a38be
commit 559baa5602
No known key found for this signature in database
GPG key ID: 67715A371E534061

View file

@ -4,27 +4,10 @@
//!
//! The following optimization techniques are used:
//! * AST is allocated in a memory arena ([bumpalo](https://docs.rs/bumpalo)) for fast AST drop
//! * Short strings are inlined by [CompactString](https://github.com/ParkMyCar/compact_str)
//! * No other heap allocations are done except the above two
//! * [oxc_span::Span] offsets uses `u32` instead of `usize`
//! * Scope binding, symbol resolution and complicated syntax errors are not done in the parser,
//! they are delegated to the [semantic analyzer](https://docs.rs/oxc_semantic)
//!
//! # Conformance
//! The parser parses all of Test262 and most of Babel and TypeScript parser conformance tests.
//!
//! See [oxc coverage](https://github.com/Boshen/oxc/tree/main/tasks/coverage) for details
//! ```
//! Test262 Summary:
//! AST Parsed : 44000/44000 (100.00%)
//!
//! Babel Summary:
//! AST Parsed : 2065/2071 (99.71%)
//!
//! TypeScript Summary:
//! AST Parsed : 2337/2337 (100.00%)
//! ```
//!
//! # Usage
//!
//! The parser has a minimal API with three inputs and one return struct ([ParserReturn]).