

#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.
Chapters
Transcript
Episode notes
1 2 3 4 5 6 7 8 9
Intro
00:00 • 3min
Exploring Pydantic: From Open Source to Performance Enhancements
02:35 • 13min
Discussion on Pydantic Performance Tips and Slideshow Sharing
15:33 • 2min
Improving Performance in Pydantic Data Validation
17:06 • 10min
Performance Optimization with Pydantic and Using Tag Unions
26:51 • 3min
Exploring Discriminated Unions in Pydantic
30:09 • 14min
Performance Improvements and Tools in Python
44:02 • 3min
Exploring the Impact of Pydantic and Large Language Models
47:27 • 10min
Pydantic Performance Tips and Congratulations
57:41 • 2min