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

refactor: explore a way to improve YAML serialization performances #998

Open
2 tasks
mtache opened this issue Jan 8, 2025 · 1 comment
Open
2 tasks

Comments

@mtache
Copy link
Collaborator

mtache commented Jan 8, 2025

Related to: pydantic/pydantic#1043

We use YAML serialization in reporters for inputs and in AntaCatalog.yaml().

  • Add a benchmark
  • Try if yaml.dump(self.model_dump_json()) would be equivalent and faster
@gmuloc
Copy link
Collaborator

gmuloc commented Jan 8, 2025

we could also dump using CDumper when libyaml is installed (in addition with avoiding json dump+load)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants