Skip to content

Single Pass Compiler: Tracking Issue #6235

@masenf

Description

@masenf

Overview

This is the tracking issue for the Single Pass Compiler (SPC) initiative — a ground-up rearchitecture of Reflex's compilation pipeline from a multi-pass, multi-threaded design to a single-pass, plugin-based architecture.

Goals

  • Replace the current multi-pass tree walks with a single-pass plugin pipeline
  • Make Component effectively immutable after construction
  • Introduce a CompilerPlugin protocol with well-defined hooks and context objects
  • Enable selective page recompilation and caching for faster dev iteration
  • Replace StatefulComponent auto-memoization with rx._x.memo-based approach
  • Remove legacy multi-threading/multiprocessing executor infrastructure
  • Improve compiler output granularity (per-module JS, module_code in VarData, memo provenance tracking)
  • Investigate single-port dev mode with internally-managed hot reload

Sub-Issues

Core Architecture

Component Model

Performance & Caching

Cleanup

Compiler Output Improvements

Future Investigation

Metadata

Metadata

Assignees

No one assigned

    Labels

    roadmaphttps://github.com/reflex-dev/reflex/issues/2727

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions