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
(
8065c0e
) with
main
(
5bd8a2a
)
CodSpeed Performance Gauge
+2%
Untouched
28
Archived
10

Benchmarks

38 total
rust@create_chunk_ids
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
+2%
10.2 ms10 ms
rust@persistent_cache_restore@basic-react-development
xtask/benchmark/benches/groups/persistent_cache.rs::persistent_cache::persistent_cache_benchmark::persistent_cache
CodSpeed Performance Gauge
+1%
26.4 ms26.1 ms
rust@split_chunks
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
+1%
6.7 ms6.7 ms
js@is css mod
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
+1%
84 µs83.6 µs
js@collect imported identifiers
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
213 µs212.4 µs
js@Traverse compilation.modules
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
62 µs61.8 µs
bundle@threejs-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
2 s2 s
rust@build_chunk_graph
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_chunk_graph_benchmark
CodSpeed Performance Gauge
0%
103.5 ms103.4 ms
js@stats.toJson()
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
21 ms20.9 ms
rust@scan_dependencies@three_module
xtask/benchmark/benches/groups/scan_dependencies.rs::scan_dependencies::benchmark_scan_dependencies
CodSpeed Performance Gauge
0%
23.6 ms23.6 ms
rust@create_module_hashes
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
21.4 ms21.4 ms
js@record chunk group
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
79.3 µs79.3 µs
js@Traverse module graph by dependencies
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
837.9 µs837.6 µs
js@record module
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
1.9 ms1.9 ms
rust@module_graph_api
xtask/benchmark/benches/groups/module_graph_api.rs::module_graph_api::module_graph_api_benchmark
CodSpeed Performance Gauge
0%
12.4 ms12.4 ms
rust@flag_dependency_usage
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
30.5 ms30.6 ms
rust@create_chunk_hashes
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
4.2 ms4.2 ms
bundle@threejs-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
706.5 ms706.9 ms
rust@build_module_graph
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_module_graph_benchmark
CodSpeed Performance Gauge
0%
1.5 s1.5 s
rust@persistent_cache_restore_after_single_file_change@basic-react-development
xtask/benchmark/benches/groups/persistent_cache.rs::persistent_cache::persistent_cache_benchmark::persistent_cache
CodSpeed Performance Gauge
0%
27.9 ms28 ms
rust@flag_dependency_exports
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
17.4 ms17.4 ms
rust@create_module_ids
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
12.6 ms12.6 ms
rust@create_concatenate_module
xtask/benchmark/benches/groups/compilation_stages.rs::compilation_stages::compilation_stages_benchmark
CodSpeed Performance Gauge
0%
41.8 ms42 ms
bundle@basic-react-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
731.3 ms734.5 ms
bundle@basic-react-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
-1%
343.4 ms345.6 ms

Commits

Click on a commit to change the comparison range
Base
main
0304bab
-4.37%
fix: limit tsfn lifecycle to prevent memory leak
265fce8
1 month ago
by SyMind
+4.48%
Merge branch 'main' into fix-ts-fn-memory-leak
8f8af83
1 month ago
by SyMind
-2.85%
rm weak_reference
d97bd8f
1 month ago
by SyMind
-1.33%
refactor compilation_scoped_tsfn_manager
71bb6f6
1 month ago
by SyMind
+1.06%
test: update test case
661ef41
1 month ago
by SyMind
-0.19%
fix: keep the original RawOptions object alive on the JS Compiler instance
cc46780
1 month ago
by SyMind
+2.61%
chore: report an error in debug builds to catch issues early
6cad875
1 month ago
by SyMind
-2.35%
Merge branch 'main' into fix-ts-fn-memory-leak
9998783
30 days ago
by SyMind
-0.29%
Merge branch 'main' into fix-ts-fn-memory-leak
fff27be
29 days ago
by SyMind
-35.4%
Merge branch 'main' into fix-ts-fn-memory-leak
f462b20
24 days ago
by SyMind
+40.58%
Merge branch 'main' into fix-ts-fn-memory-leak
8065c0e
19 days ago
by SyMind
+1.11%
Merge branch 'main' into fix-ts-fn-memory-leak
476b6f0
18 days ago
by SyMind
-5.08%
refactor: release tsfn in compiler close
7c5df19
18 days ago
by SyMind
+0.1%
fix: test case
dbc4fff
17 days ago
by SyMind
+1.9%
fix: test case
5ac340b
16 days ago
by SyMind
+2.3%
improve error message
b26450b
16 days ago
by SyMind
© 2026 CodSpeed Technology
Home Terms Privacy Docs