BlogDocs

Dispose @snapshottedView reactions when destroyed(#105)

Merged
Merging
sc/skip-reaction-when-detached
(
5ba0951
) into
main
(
0ab634a
)
-49%
IMPROVEMENTS
1
REGRESSIONS
2
UNTOUCHED
8
NEW
0
DROPPED
0
IGNORED
4

Benchmarks

Failed

instantiating a large rootRegression
bench/instantiation.benchmark.ts::instantiating a large root
-49%
2.5 ms
4.8 ms
accessing unmemoized getter properties of a class modelRegression
bench/property-access.benchmark.ts::accessing unmemoized getter properties of a class model
-20%
15.3 µs
19 µs

Improved

accessing unmemoized null property of a class model
bench/property-access.benchmark.ts::accessing unmemoized null property of a class model
+11%
12.2 µs
11 µs

Passed

accessing memoized null property of a class model
bench/property-access.benchmark.ts::accessing memoized null property of a class model
+6%
10.1 µs
9.5 µs
accessing memoized getter properties of a class model
bench/property-access.benchmark.ts::accessing memoized getter properties of a class model
+3%
11.4 µs
11.1 µs
instantiating a small root
bench/instantiation.benchmark.ts::instantiating a small root
+1%
21.7 µs
21.5 µs
instantiating deep references
bench/create-references.benchmark.ts::instantiating deep references
0%
88.9 µs
88.7 µs
mobx-quick-tree ClassModel
bench/cross-framework.benchmark.ts::mobx-quick-tree ClassModel
0%
40.3 µs
40.3 µs
instantiating a diverse root
bench/instantiation.benchmark.ts::instantiating a diverse root
0%
53.8 µs
53.8 µs
instantiating one reference
bench/create-references.benchmark.ts::instantiating one reference
0%
39 µs
39.1 µs
instantiating a large union
bench/create-union.benchmark.ts::instantiating a large union
0%
60.3 µs
60.4 µs

Ignored

mobx-quick-tree types.modelIgnored
bench/cross-framework.benchmark.ts::mobx-quick-tree types.model
0%
153.9 µs
154.3 µs
mobx-state-treeIgnored
bench/cross-framework.benchmark.ts::mobx-state-tree
0%
1.5 ms
1.5 ms
plain es6Ignored
bench/cross-framework.benchmark.ts::plain es6
0%
16.1 µs
16 µs
plain mobxIgnored
bench/cross-framework.benchmark.ts::plain mobx
0%
281 µs
281.5 µs

Commits

Click on a commit to change the comparison range
base
main
0ab634a
+38%
Skip @snapshottedView reaction when detached
21e08f7
3 months ago
by scott-rc
-87%
Dispose @snapshottedView reactions when destroyed
5ba0951
3 months ago
by scott-rc
ResourcesHomePricingDocsBlogGitHubChangelog