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

cache get_type_hints for heavy init subclass stuff - improve import performance

#6118
Comparing
benedikt-bartscher:perf/cache-get-type-hints
(
a83bdf9
) with
main
(
5d1d6db
)
CodSpeed Performance Gauge
0%
Untouched
8

Benchmarks

8 total
test_evaluate_page[_stateful_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
6.6 ms6.6 ms
test_compile_page[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
10.8 ms10.8 ms
test_compile_stateful[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
613.7 µs614 µs
test_get_all_imports[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
3.1 ms3.1 ms
test_evaluate_page[_complicated_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
47.5 ms47.6 ms
test_compile_page[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
90.9 ms91.3 ms
test_compile_stateful[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
150.9 µs151.6 µs
test_get_all_imports[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
-1%
22.8 ms23 ms

Commits

Click on a commit to change the comparison range
Base
main
5d1d6db
-0.23%
fix: cache get_type_hints for heavy init subclass stuff to improve import performance
a83bdf9
2 days ago
by benedikt-bartscher
© 2026 CodSpeed Technology
Home Terms Privacy Docs