reflex-dev
reflex
BlogDocsChangelog

MutableProxy: wrap dataclass and BaseModel methods

#5979Merged
Comparing
masenf/dataclass-mutable-proxy
(
507e804
) with
main
(
a679316
)
CodSpeed Performance Gauge
0%
Untouched
8

Benchmarks

Passed

test_get_all_imports[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
+1%
3.1 ms3.1 ms
test_compile_page[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
10.5 ms10.5 ms
test_get_all_imports[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
22.8 ms22.7 ms
test_compile_page[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
88.6 ms88.4 ms
test_evaluate_page[_complicated_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
46.4 ms46.3 ms
test_compile_stateful[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
595.4 µs595.4 µs
test_evaluate_page[_stateful_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
6.5 ms6.5 ms
test_compile_stateful[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
147.5 µs148.3 µs

Commits

Click on a commit to change the comparison range
Base
main
a679316
+0.17%
MutableProxy: wrap dataclass and BaseModel methods When calling a method on an arbitrary wrapped object, rebind it's `self` as the mutable proxy so changes made inside the method are also tracked. (Previously only wrapped `Base` instances had in-method tracking).
507e804
1 day ago
by masenf
© 2025 CodSpeed Technology
Home Terms Privacy Docs