Skip to content

Deprecate zero-copy keyword argument in @ez.subscriber#216

Open
griffinmilsap wants to merge 1 commit intofeature/sync-lowlevel-apifrom
fix/209-zero-copy
Open

Deprecate zero-copy keyword argument in @ez.subscriber#216
griffinmilsap wants to merge 1 commit intofeature/sync-lowlevel-apifrom
fix/209-zero-copy

Conversation

@griffinmilsap
Copy link
Collaborator

Closes #209

Summary

  • Deprecate the zero_copy argument on @subscriber (ignored for years) and emit a warning when it’s explicitly passed.
  • Update internal usages to remove redundant zero_copy=True.

Changes

  • src/ezmsg/core/unit.py: Treat zero_copy as deprecated, warn when provided, and always set ZERO_COPY_ATTR=True.
  • src/ezmsg/util/perf/impl.py: Remove zero_copy=True from @ez.subscriber.
  • src/ezmsg/util/debuglog.py: Remove zero_copy=True from @ez.subscriber.
  • src/ezmsg/util/messages/modify.py: Remove zero_copy=True from @ez.subscriber.
  • src/ezmsg/util/messages/key.py: Remove zero_copy=True from @ez.subscriber.

Deprecation

  • @subscriber(..., zero_copy=...) is now deprecated and ignored. A DeprecationWarning is emitted when used.

Testing

  • Not run (not requested).

@griffinmilsap griffinmilsap changed the base branch from dev to feature/sync-lowlevel-api February 13, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: All subscribers are currently zero-copy.

1 participant