swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
chore: Add changeset
fix/plugin-serialized-bytes-unsafe
8 minutes ago
chore: Add changeset
fix/12081-unwrap-mut-lifetime
12 minutes ago
fix(hstr): avoid references to uninitialized bytes
fix/hstr-uninitialized-memory
16 minutes ago
chore: Add changeset
fix/preset-env-async-generators
17 minutes ago
test(es2015): update static field parameter snapshot
fix/es2015-static-field-this
20 minutes ago
perf(es/minifier): Apply pending substitutions in batch for if-dense statement lists The optimizer flushed pending substitutions into each `if` statement individually before `merge_similar_ifs` (one Finalizer + one NormalMultiReplacer walk per `if`). On typescript.js this produced ~68k double walks per optimize() call with 0.4-1.7% hit rates. Apply the substitutions to the whole statement list in a single batch walk when the list is if-dense (>= 16 ifs), and keep the per-if loop otherwise. Both forms are semantically equivalent: the substitution maps only mutate via consumption of applied entries, which happens in the same statement order either way. es/minifier/libs benchmarks: 2.5-13.8% faster across all 12 lib fixtures (typescript -13.8%, echarts -11.8%, lodash -10.5%), byte-identical output on the entire fixture corpus.
hamidrezahanafi:perf/minifier-batch-substitutions
13 hours ago
fix(html/minifier): Preserve JSON script boundaries (#12080) **Description:** Preserve JSON `script` element boundaries during HTML minification. The JSON serializer normalizes Unicode escapes, which can turn escaped less-than signs into literal characters and change how the HTML parser delimits the containing element. Re-escape less-than signs after serialization so the minified document retains the same element structure. Add fixture coverage for encoded element-like content. **Related issue (if exists):** None. **Verification:** - `cargo test -p swc_html_minifier` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings`
main
1 day ago
test(html/minifier): Clarify JSON boundary fixture
kdy1/preserve-json-script-boundaries
1 day ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(hstr): avoid references to uninitialized bytes
#12087
20 minutes ago
ace38ad
fix/hstr-uninitialized-memory
CodSpeed Performance Gauge
0%
fix(preset-env): lower unsupported async generators
#12086
19 minutes ago
d1cb156
fix/preset-env-async-generators
CodSpeed Performance Gauge
0%
fix(es/es2015): preserve this in static field parameters
#12085
29 minutes ago
e36fa52
fix/es2015-static-field-this
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs