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

Cache expensive introspection calls in pyi_generator for faster stub generation

#6187Merged
Comparing
FarhanAliRaza:optimize-pyi-gen
(
040a0d7
) with
main
(
fe34ae8
)
CodSpeed Performance Gauge
0%
Untouched
8

Benchmarks

8 total
test_compile_stateful[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
155.3 µs154.9 µs
test_compile_stateful[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
599.8 µs599.3 µs
test_evaluate_page[_complicated_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
47.3 ms47.3 ms
test_compile_page[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
10.7 ms10.8 ms
test_evaluate_page[_stateful_page]
tests/benchmarks/test_evaluate.py
CodSpeed Performance Gauge
0%
6.5 ms6.5 ms
test_compile_page[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
0%
90.6 ms90.9 ms
test_get_all_imports[_stateful_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
-1%
3.1 ms3.1 ms
test_get_all_imports[_complicated_page]
tests/benchmarks/test_compilation.py
CodSpeed Performance Gauge
-1%
22.7 ms23 ms

Commits

Click on a commit to change the comparison range
Base
main
fe34ae8
-0.33%
Cache expensive introspection calls in pyi_generator for faster stub generation
8fe2f04
29 days ago
by FarhanAliRaza
+0.55%
Return immutable MappingProxyType from cached import/annotation helpers
90bc81b
28 days ago
by FarhanAliRaza
-0.36%
Windows does not support fork 1.55 sec
1274e57
28 days ago
by FarhanAliRaza
-0.16%
cleanup
040a0d7
28 days ago
by FarhanAliRaza
© 2026 CodSpeed Technology
Home Terms Privacy Docs