Avatar for the reflex-dev user
reflex-dev
reflex
BlogDocsChangelog

Optimize MutableProxy dataclasses detection on hot-path

#6600
Comparing
claude/gracious-johnson-6FlzO
(
e7d9eb2
) with
main
(
bb8b6f5
)
CodSpeed Performance Gauge
0%
Untouched
24
New
4

Benchmarks

28 total
test_var_access[mutable_dataclass_list]
tests/benchmarks/test_state_proxy.py
CodSpeed Performance Gauge
N/A
N/A206.8 ms
test_var_access[mutable_dict]
tests/benchmarks/test_state_proxy.py
CodSpeed Performance Gauge
N/A
N/A88 ms
test_var_access[mutable_list]
tests/benchmarks/test_state_proxy.py
CodSpeed Performance Gauge
N/A
N/A70.9 ms
test_var_access[non_mutable_scalar]
tests/benchmarks/test_state_proxy.py
CodSpeed Performance Gauge
N/A
N/A57.4 ms
test_from_event_type[event_handler]
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
+1%
96.9 µs96 µs
test_from_event_type[lambda_event_handler]
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
+1%
98.2 µs97.5 µs
test_get_all_imports_single_pass[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
+1%
451.5 µs449.1 µs
test_get_all_imports[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
+1%
548.1 µs545.3 µs
test_from_event_type[event]
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
0%
29.3 µs29.2 µs
test_compile_page_single_pass[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
32.9 ms32.8 ms
test_process_event
tests/benchmarks/test_event_processing.py
CodSpeed Performance Gauge
0%
7.6 ms7.5 ms
test_compile_page_full_context[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
35.7 ms35.6 ms
test_compile_single_pass_all_artifacts[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
29.4 ms29.4 ms
test_get_all_imports_single_pass[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
test_compile_page_full_context[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
138.4 ms138.4 ms
test_compile_page[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
test_compile_page_single_pass[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
130.4 ms130.4 ms
test_evaluate_page[_stateful_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
6.5 ms6.5 ms
test_get_all_imports[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
2.8 ms2.8 ms
test_evaluate_page_single_pass[_complicated_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
39.2 ms39.3 ms
test_from_event_type[lambda_event]
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
0%
29 µs29.1 µs
test_evaluate_page_single_pass[_stateful_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
7.4 ms7.4 ms
test_evaluate_page[_complicated_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
38.3 ms38.4 ms
test_console_log
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
0%
426.3 µs427.6 µs
test_from_event_type[event_spec]
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
0%
52 µs52.2 µs

Commits

Click on a commit to change the comparison range
Base
main
bb8b6f5
-0.12%
perf(proxy): avoid inspect.getfile on MutableProxy read hot-path
04df1e2
3 hours ago
by claude
+0.14%
chore: add changelog fragment for proxy read perf fix
e7d9eb2
27 minutes ago
by claude
© 2026 CodSpeed Technology
Home Terms Privacy Docs