You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please make Graph move-only and avoid sharing node ownership. Copying a graph is ambiguous and expensive; move-only makes lifetime explicit and prevents accidental deep/shallow copies. Also, keep a single owner of layers inside Graph and pass raw pointers (or ids) for wiring to avoid refcount overhead on the hot path.
Please make Graph move-only and avoid sharing node ownership. Copying a graph is ambiguous and expensive; move-only makes lifetime explicit and prevents accidental deep/shallow copies. Also, keep a single owner of layers inside Graph and pass raw pointers (or ids) for wiring to avoid refcount overhead on the hot path.
It's avoids atomic refcount churn from shared_ptr, eliminates hidden cycles, and makes lifetime rules crystal clear.