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

performance: investigate mashumaro orjson serializers #727

Open
willmurphyscode opened this issue Nov 6, 2024 · 0 comments
Open

performance: investigate mashumaro orjson serializers #727

willmurphyscode opened this issue Nov 6, 2024 · 0 comments
Labels
enhancement New feature or request performance CPU or memory resource utilization of a provider

Comments

@willmurphyscode
Copy link
Contributor

What would you like to be added:

Elsewhere at Anchore, we use orjson over json because it's faster. It looks like mashumaro, a library providing dataclass mixins for JSON deserialization has optional features for integrating with orjson: https://github.com/Fatal1ty/mashumaro?tab=readme-ov-file#orjson-library

Therefore, we should investigate using the mashumaro orjson integration directly to see if there are any performance gains.

Why is this needed:

Vunnel is a very I/O intensive application - it spends a lot of timing downloading and then decoding JSON documents, so performances gains in JSON deserialization might be significant.

Additional context:

@willmurphyscode willmurphyscode added enhancement New feature or request performance CPU or memory resource utilization of a provider labels Nov 6, 2024
@willmurphyscode willmurphyscode moved this to Ready in OSS Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance CPU or memory resource utilization of a provider
Projects
Status: Ready
Development

No branches or pull requests

1 participant