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
Opt into impls for Rc and Arc. Serializing and deserializing these types does not preserve identity and may result in multiple copies of the same data. Be sure that this is what you want before enabling this feature.
Serializing a data structure containing reference-counted pointers will serialize a copy of the inner value of the pointer each time a pointer is referenced within the data structure. Serialization will not attempt to deduplicate these repeated data.
Deserializing a data structure containing reference-counted pointers will not attempt to deduplicate references to the same data. Every deserialized pointer will end up with a strong count of 1.
The feature was added in this PR made 3 years ago. It adds derive(Serialize, Deserialize) to DataType, Field, and Schema, none of which contain any Rc<T> or Arc<T> as far as I can tell. It only adds a test for a DataType::Struct that contains Fields, but Schema contains Fields too, so I think that coverage is enough.
I tried taking the rc feature out and arrow's tests still pass.
@andygrove I don't suppose you remember why you enabled the rc feature of serde in a PR made 3 years ago? 😂
Activity
houqp commentedon Dec 2, 2021
if it builds without
rcand passes all tests, then I don't see a reason to keep it :DRemove unneeded `rc` feature of serde (#990)
Remove unneeded `rc` feature of serde (#990)
Remove unneeded `rc` feature of serde (#990) (#1016)
[56_maintenance] Fix cargo_audit: Pin cargo-msrv and Cargo.lock in CI (…