Skip to content

Rendering robustness & performance polish backlog #21

Closed

Description

@JuroOravec

Small accepted limitations and polish items, grouped. None block correctness for normal use.

  • Runtime sandbox fast path for safe-attribute checks (~2-3%, deferred in docs/design/performance.md).
  • Chained dynamic-component recursion limit: return a DeferredComponent from the <c-component>/<c-element> wrapper so deep chains do not add a stack frame per level (citry_render.py; documented limit is ~200 today).
  • Finer error spans: per-attribute error granularity, and an "included at line N" breadcrumb on DeferredComponent for error tracing.
  • Parser: static duplicate-fill analysis (catch two same-name fills in one branch at parse time) and parse-time Kwargs validation for static <c-component is="..."> targets (crates/citry_template_parser/src/parser.rs, compiler.rs).
  • Error-interception edges: no rollback of discarded-child deps on an on_component_rendered replacement; slot frames for deferred-in-fill descendants (docs/design/on_render.md Q3/Q4).
  • Hot-reload: evict subclasses on a direct parent reset_template/reset_files; include py-file-relative asset dirs in default watch roots; a first-party request_restart callback for standalone citry watch.

Backlog: pick up individually as needed.

Activity

  1. added
    enhancement
    on Jul 1, 2026
  2. JuroOravec commented on Oct 28, 2026

    @JuroOravec
    MemberAuthor

    Closing as a tracker. The sandbox fast path shipped in citry-core 1.5.1 (_SAFE_EXACT_ATTRIBUTE_TYPES in safe_eval/sandbox.py). The remaining items are still open and now live in #144 under "Robustness items moved from #21".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions