Fatal1ty / mashumaro

Fast and well tested serialization library
Apache License 2.0
758 stars 45 forks source link

Add an option to avoid collection data types copying #163

Closed Fatal1ty closed 1 year ago

Fatal1ty commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, all collection data types are serialized as copies to prevent mutation, but for mixins like DataClassORJSONMixin we can avoid that and improve serialization performance. The list of mixins that use their own dialects:

Describe the solution you'd like Introduce no_copy dialect option.