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

refactor: freeze components after create and use copy_with for mutations

#6468
Comparing
FarhanAliRaza:immutability
(
4f7dfb9
) with
main
(
e88acf7
)
CodSpeed Performance Gauge
+4%
Improvement
2
Untouched
22

Benchmarks

24 total
test_evaluate_page_single_pass[_complicated_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
+4%
39.4 ms38 ms
test_evaluate_page[_complicated_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
+4%
38.5 ms37.2 ms
test_compile_single_pass_all_artifacts[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
-3%
80.9 ms83.2 ms
test_get_all_imports_single_pass[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
+3%
1.6 ms1.5 ms
test_evaluate_page_single_pass[_stateful_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
+3%
7.4 ms7.2 ms
test_evaluate_page[_stateful_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
+3%
6.5 ms6.3 ms
test_compile_single_pass_all_artifacts[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
-2%
29.3 ms30 ms
test_compile_page_single_pass[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
-2%
32.8 ms33.5 ms
test_compile_page_single_pass[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
-2%
130.3 ms132.9 ms
test_get_all_imports_single_pass[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
+1%
450.7 µs444.9 µs
test_compile_page_full_context[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
-1%
35.6 ms36 ms
test_compile_page[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
-1%
8.5 ms8.5 ms
test_get_all_imports[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
+1%
2.8 ms2.7 ms
test_console_log
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
-1%
426.6 µs429.5 µs
test_from_event_type[lambda_event]
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
0%
29 µs29.2 µs
test_from_event_type[event_spec]
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
0%
52 µs52.2 µs
test_get_all_imports[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
549.1 µs547.2 µs
test_compile_page_full_context[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
138.4 ms138.8 ms
test_compile_page[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
test_from_event_type[event]
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
0%
29.2 µs29.3 µs
test_process_event
tests/benchmarks/test_event_processing.py
CodSpeed Performance Gauge
0%
7.6 ms7.6 ms
test_from_event_type[lambda_event_spec]
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
0%
53.9 µs53.9 µs
test_from_event_type[lambda_event_handler]
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
0%
97.5 µs97.6 µs
test_from_event_type[event_handler]
tests/benchmarks/test_event_creation.py
CodSpeed Performance Gauge
0%
96 µs96.1 µs

Commits

Click on a commit to change the comparison range
Base
main
e88acf7
-28.78%
Merge remote-tracking branch 'upstream/main' into immutability
41e141c
1 month ago
by FarhanAliRaza
+32.59%
perf: speed up Component construction hot path
d1d22c5
1 month ago
by FarhanAliRaza
-0.13%
fix: preserve empty event_triggers dict and rename shadowed field var
78f1602
1 month ago
by FarhanAliRaza
-6.73%
refactor: inline style merge into Component and tidy copy_with paths
15d40a3
1 month ago
by FarhanAliRaza
+6.26%
refactor: accept Sequence in passthrough_children_var for broader call sites
37da3ed
1 month ago
by FarhanAliRaza
+0.23%
refactor: drop add_hooks freeze escape hatch, derive editor callback
003e4f6
20 days ago
by FarhanAliRaza
+0.11%
docs: add news fragment for DataEditor callback derivation
4f7dfb9
20 days ago
by FarhanAliRaza
© 2026 CodSpeed Technology
Home Terms Privacy Docs