Talk Python To Me

#466: Pydantic Performance Tips

4 snips
Jun 14, 2024
Sydney Runkle shares Pydantic performance tips to optimize code efficiency, covering techniques like using tag unions for discrimination in validation, efficient creation of type adapters, and strategies for importing code specifications. The discussion also explores discriminators for nested models, 'skip validation' annotations, and tools like CODSPEED for benchmark tests. Learn about Pydantic's impact on projects like FastAPI and the potential integration with large language models for enhanced productivity.
Ask episode
Chapters
Transcript
Episode notes