swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/codegen): preserve TypeScript token boundaries Keep type argument closers and assertion openers distinct from adjacent operators. Separate nested type openers and retain semicolons before type assertions and JSX. Preserve empty generic constructor arguments. Batch empty argument lists and inline type argument emission. Add TS/TSX fixtures with compact output, AST, and source-map checks.
fix/ts-codegen-token-boundaries
36 minutes ago
perf(hstr): allow Atom::as_str to inline across crates (#12522) **Description:** `Atom`'s `Deref` and `AsRef<str>` implementations are inline, but both call `Atom::as_str` without an inline hint. Add `#[inline]` to make that implementation available for cross-crate inlining. Add patch changesets for `hstr` and `swc_core`. An isolated CodSpeed benchmark confirmed that the separate `Atom::as_str` call disappears. The [CPU simulation](https://app.codspeed.io/swc-project/swc/runs/compare/6acd782a4b60f59a90e4f4e9..6acd78494b60f59a90e4f4f0) measured a 2.4% regression for 7-byte strings and no change for 20-byte strings. The [macOS walltime run](https://app.codspeed.io/swc-project/swc/runs/compare/6acd774e4b60f59a90e4f4c1..6acd777f4b60f59a90e4f4c8) measured lower best times for both cases. These results do not establish a consistent speedup or an end-to-end performance change. Validation: - `cargo test -p hstr` (60 unit tests and 1 doc test passed) - `cargo fmt --all` (passed) - `cargo clippy --all --all-targets -- -D warnings` (passed) **BREAKING CHANGE:** None. **Related issue (if exists):** Closes #12516
main
1 hour ago
chore: Add changeset
kdy1/hstr-as-str-inline
2 hours ago
chore: Add changeset
vjeux:fix/minifier-trivial-lit-copy-size
2 hours ago
CLI run
by
kdy1
2 hours ago
CLI run
by
kdy1
2 hours ago
CLI run
by
kdy1
2 hours ago
CLI run
by
kdy1
2 hours ago
Latest Branches
CodSpeed Performance Gauge
-2%
fix(es/codegen): preserve TypeScript token boundaries
#12523
8 hours ago
cea5dcb
fix/ts-codegen-token-boundaries
CodSpeed Performance Gauge
+3%
perf(hstr): allow Atom::as_str to inline across crates
#12522
2 hours ago
fde4e18
kdy1/hstr-as-str-inline
CodSpeed Performance Gauge
0%
fix(es/minifier): Bound literal expressions copied by the sequential inliner
#12521
2 hours ago
32b54b8
vjeux:fix/minifier-trivial-lit-copy-size
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs