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).
Rationale
ActorPath.toString()rebuilds the rendered path fromelements()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
path → toString → parse → toStringis stable;child()chains preserveelements()order.Documentation
Acceptance
Relates
Improvement program M2. #278 (branded ActorPath type).