Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to avoid collection data types copying #163

Closed
Fatal1ty opened this issue Sep 9, 2023 · 0 comments · Fixed by #164
Closed

Add an option to avoid collection data types copying #163

Fatal1ty opened this issue Sep 9, 2023 · 0 comments · Fixed by #164
Labels
enhancement New feature or request

Comments

@Fatal1ty
Copy link
Owner

Fatal1ty commented Sep 9, 2023

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:

  • DataClassORJSONMixin
  • DataClassMessagePackMixin
  • DataClassTOMLMixin

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

@Fatal1ty Fatal1ty added the enhancement New feature or request label Sep 9, 2023
@Fatal1ty Fatal1ty changed the title Avoid collection copying for orjson Add an option to avoid collection data types copying Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant