Avatar for the web-infra-dev user
web-infra-dev
rspack
BlogDocsChangelog

fix: limit tsfn lifecycle to prevent memory leak

#13565
Comparing
fix-ts-fn-memory-leak
(
fff27be
) with
main
(
5136287
)
CodSpeed Performance Gauge
-3%
Improvement
1
Regression
2
Untouched
13
Skipped
19

Benchmarks

19 total
rust@build_chunk_graph_parallel
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_chunk_graph_benchmark
Skipped
114.7 ms*
bundle@threejs-production
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
Skipped
1.6 s*
bundle@basic-react-production
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
Skipped
537.8 ms*
bundle@threejs-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
Skipped
48.7 MB*
rust@module_graph_api
xtask/benchmark/benches/groups/module_graph_api.rs::module_graph_api::module_graph_api_benchmark
Skipped
0 B*
bundle@basic-react-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
Skipped
11 MB*
rust@build_module_graph
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_module_graph_benchmark
Skipped
86.8 MB*
rust@build_chunk_graph
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_chunk_graph_benchmark
Skipped
14.3 MB*
bundle@basic-react-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
Skipped
12.6 MB*
bundle@threejs-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
Skipped
19.5 MB*
js@Traverse compilation.modules
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
61.1 µs*
js@record chunk group
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
78.3 µs*
js@stats.toJson()
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
21.7 ms*
js@collect imported identifiers
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
211 µs*
js@is css mod
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
83.4 µs*
js@record module
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
1.9 ms*
js@Traverse module graph by connections
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
260.9 µs*
js@external getResolve
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
1.5 ms*
js@Traverse module graph by dependencies
tests/bench/ts-react.bench.ts::TypeScript React project
Skipped
528 µs*

Commits

Click on a commit to change the comparison range
Base
main
5136287
-4.37%
fix: limit tsfn lifecycle to prevent memory leak
265fce8
5 days ago
by SyMind
+4.48%
Merge branch 'main' into fix-ts-fn-memory-leak
8f8af83
5 days ago
by SyMind
-2.85%
rm weak_reference
d97bd8f
5 days ago
by SyMind
-1.33%
refactor compilation_scoped_tsfn_manager
71bb6f6
5 days ago
by SyMind
+1.06%
test: update test case
661ef41
4 days ago
by SyMind
-0.19%
fix: keep the original RawOptions object alive on the JS Compiler instance
cc46780
4 days ago
by SyMind
+2.61%
chore: report an error in debug builds to catch issues early
6cad875
4 days ago
by SyMind
-2.35%
Merge branch 'main' into fix-ts-fn-memory-leak
9998783
3 days ago
by SyMind
-0.29%
Merge branch 'main' into fix-ts-fn-memory-leak
fff27be
2 days ago
by SyMind
© 2026 CodSpeed Technology
Home Terms Privacy Docs