reflex-dev
reflex
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
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
SEO: eliminate remaining multiple-H1 and redirect-link sources Multiple H1: demote demo rx.heading() to as_=h2 across 57 docs (164 calls), demote section-level markdown '# ' headings to '##' in 18 docs, and render the component 'API Reference' heading as h2 — each docs page now has a single H1. Redirect links: make all top-level internal links in the shared footer/navbar/sidebar trailing-slash (/docs/, /blog/, /pricing/, ...) so they no longer hit 301s. Alt text: add descriptive alt to ui.avatar.image logos/avatars in docs-landing, integration gallery, and shared gallery. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
seo-fixes
1 day ago
SEO: stop frontmatter leaking into docs meta descriptions; add image alt extract_doc_description now prefers a frontmatter description field and otherwise strips the whole --- block before scanning, so lines like 'title: Aligned Grids' or 'tags: DevTools' no longer become the meta description. Also add alt text to docs-landing and shared gallery/markdown images. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
seo-fixes
1 day ago
SEO: emit a single og:image (fix favicon + preview duplicate) Reflex's compiler always renders one og:image from add_page's image kwarg (defaulting to favicon.ico). Pass the real preview image to add_page and strip og:image from the create_meta_tags meta list, so each page has exactly one og:image (the preview) plus one twitter:image, instead of favicon + preview. Applies to the docs renderer (reflex_docs.py) and docs landing page. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
seo-fixes
1 day ago
SEO: address review — broaden numbered-list skip + bound title fallback extract_doc_description now skips ordered-list items 1.-9. (was 1.-3.) so later numbered items aren't pulled into descriptions; the bare-title fallback is now length-checked, dropping to the unsuffixed title when even that would exceed ~60 chars. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
seo-fixes
1 day ago
Apply pre-commit ruff formatting to docs code blocks Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
seo-fixes
1 day ago
SEO: add missing H1s, image alt text, and fix broken docs links Add a top-level H1 to 10 docs pages that had none; add descriptive alt text to ~97 rx.image() calls across docs and to integrations-docs screenshots; repoint the dead build.reflex.dev/tokens link to /docs/hosting/tokens. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
seo-fixes
1 day 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