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
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.
wrap_module_returnsand_aswhestcurrently wrap/copy array outputs in all paths, including internal/private call sites whereWhesArraysubclass semantics are not externally observable.Introduce an internal fast path that can skip
_aswhestin trusted call sites while preserving current public behavior by default.Files
src/whest/_ndarray.pyAcceptance Criteria