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

Performance History

Latest Results

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
11 hours ago
ENG-9923: Add REFLEX_EXTRA_PLUGINS env var to append to plugin list (#6685) * ENG-9923: Add REFLEX_EXTRA_PLUGINS env var to append to plugin list REFLEX_EXTRA_PLUGINS defined plugin import paths that will be added to the Config.plugins list if the list does not already contain a plugin of that type. When adding extra plugins, the `disable_plugins` config field is respected, so explicitly disabled plugins cannot be injected from the environment. * Remove warning when disabling a non-builtin plugin * add CHANGELOG entry for 0.9.6.post1 directly * track invalid plugins when handling env vars * use more specific InvalidPluginConfigError throughout _normalize_plugins * let AttributeError fall through in interpret_plugin_class_env Changes the error message on a bad plugin name which was confusing: ``` Warning: Ignoring invalid REFLEX_EXTRA_PLUGINS entry 'repro_hydrate_fallback.Foobar' (Invalid plugin class: 'Foobar' for REFLEX_EXTRA_PLUGINS[0]. Must be a subclass of Plugin.). ``` To a more clear error ``` Warning: Ignoring invalid REFLEX_EXTRA_PLUGINS entry 'repro_hydrate_fallback.Foobar' (Failed to get plugin class 'Foobar' from module 'repro_hydrate_fallback' for REFLEX_EXTRA_PLUGINS[0]: module 'repro_hydrate_fallback' has no attribute 'Foobar'). ``` * CHANGELOG: error message for interpret_plugin_class_env Improved error messaging for plugin specifications and fixed warning for non-built-in plugins in config. * tersify description of REFLEX_EXTRA_PLUGINS * fix test assertions previous test cases were asserting on the "wrong" message
main
1 day ago

Latest Branches

CodSpeed Performance Gauge
0%
Experimental Rust compiler core + incremental compile cache (Phase 0)#6687
11 hours ago
bd20015
claude/reflex-compiler-design-dv39h9
CodSpeed Performance Gauge
0%
SEO audit fixes: docs meta/titles/H1/alt + shared redirect & structured-data#6686
1 day ago
be90818
seo-fixes
CodSpeed Performance Gauge
0%
ENG-9923: Add REFLEX_EXTRA_PLUGINS env var to append to plugin list#6685
1 day ago
4c31f84
masenf/extra-plugins-env-var
© 2026 CodSpeed Technology
Home Terms Privacy Docs