Skip to content

Add guarded return-wrapping fast path for internal _aswhest usage #24

Description

@spMohanty

wrap_module_returns and _aswhest currently wrap/copy array outputs in all paths, including internal/private call sites where WhesArray subclass semantics are not externally observable.

Introduce an internal fast path that can skip _aswhest in trusted call sites while preserving current public behavior by default.

Files

  • src/whest/_ndarray.py

Acceptance Criteria

  • Public API semantics (including documented subclass/OWNDATA behavior) remain unchanged by default.
  • Internal callers can opt into the fast path.
  • Existing compatibility and xfail expectations remain valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreCore whest API, counting, ndarray, and dispatch/wrapping pathsperformancePerformance optimization and runtime-sensitive improvementspriority:p2Nice-to-have, scheduled

    Type

    No type

    Fields

    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