Skip to content

[Feature] Memoize ActorPath.toString() #412

Description

@pathosDev

Rationale

ActorPath.toString() rebuilds the rendered path from elements() on every call, and it is used in equality checks and in metric / dead-letter labels — warm paths. Paths are immutable, so the rendered form can be computed lazily once and cached.

Scope

  • Lazy cached string on the instance; parse/child semantics unchanged.
  • fast-check property: path → toString → parse → toString is stable; child() chains preserve elements() order.

Documentation

  • CHANGELOG entry (internal performance).

Acceptance

  • Property test green; benches neutral or better.

Relates

Improvement program M2. #278 (branded ActorPath type).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority: lowNice-to-have / niche / demand-driven

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions