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

Performance History

Latest Results

perf(compiler): trim compile-daemon hot reload - disk_cache: stop re-evaluating stateful HIT pages during an incremental rebuild. The compiling process never serves (the daemon, the initial compile, and CLI compiles all exit; the serving backend re-evaluates the marked stateful pages itself), so re-running their render pipeline was pure waste. The stateful-pages marker stays complete -- hits recorded from the manifest, misses from the fresh compile. - compile_daemon: poll faster (0.25s -> 0.05s) but cheaply -- stat the known file set each tick and rglob only every 1s for added/removed files, cutting detection latency without burning idle CPU. - compile_daemon: log per-edit timing (reset / reimport / compile).
FarhanAliRaza:reflex-hmr
8 hours ago
perf(compiler): remove low-value component cache; make disk-cache manifest write cheap Two changes from profiling the caching stack on the docs app (417 pages): 1. Remove the static-subtree component cache (module, REFLEX_COMPONENT_CACHE flag, tests, compile_app integration). Instrumentation showed it is only ~1.1x on a real app and not worth the maintenance surface: construction is just 19% of compile time (render + memoization + codegen are the other 81%), and only 37% of constructions are fully-static (cacheable) with 23% actually hitting — and those hits are the cheap static leaves, not the expensive state/event components. The "72.7% duplicate subtrees" figure counts post-render structural duplicates, including dynamic ones the construction cache can never reuse. The add_meta own-before-mutate fix that this work surfaced is kept (it stands on its own). 2. Disk-cache manifest write: drop the per-page memo re-render. The manifest stored memo_files/memo_imports/used_state_hashes, none of which the fast path reads (it gates on the app-wide state-hash set and reads only app_wrap_keys + is_stateful per page; a hit page's memo files are already on disk, a miss page re-renders its own on recompile). Computing them re-rendered every page's memos a second time. On the docs app this cuts manifest write ~30s -> 1.8s and the edit-one-page rebuild 2.8s -> 1.6s (31x vs a 50s cold compile); first-build overhead drops from +30s to +1.8s. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N7aTCgjL6EGFXDscKT9UyJ
claude/reflex-compiler-design-dv39h9
2 days ago

Latest Branches

CodSpeed Performance Gauge
0%
feat(compiler): add incremental compile cache (REFLEX_COMPILE_CACHE)#6688
8 hours ago
5ba6614
FarhanAliRaza:reflex-hmr
CodSpeed Performance Gauge
0%
Experimental Rust compiler core + incremental compile cache (Phase 0)#6687
2 days ago
bd20015
claude/reflex-compiler-design-dv39h9
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home Terms Privacy Docs